pub fn fmt(&self, fmt: &mut Formatter<'_>) -> fmt::Result {
        write!(fmt, "{}", self.name)?;
        self.fields.fmt(fmt)?;
        write!(fmt, ",\n")?;

        Ok(())
    }
/// Formats the variant using the given formatter.
Formats the variant using the given formatter.
Formats the variant using the given formatter .
pub fn fmt(&self, fmt: &mut Formatter<'_>) -> fmt::Result {
        write!(fmt, "{}", self.name)?;
        self.fields.fmt(fmt)?;
        write!(fmt, ",\n")?;
        Ok(())
    }
pub fn fmt ( & self , fmt : & mut Formatter < ' _ > ) -> fmt :: Result { write ! ( fmt " " self name ) ? ; self . fields . fmt ( fmt ) ? ; write ! ( fmt " \n " ) ? ; Ok ( ( ) ) }
Formats the variant using the given formatter.
Formats the variant using the given formatter .
&self
fmt
&mut Formatter<'_>