pub fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
        self.type_def.fmt_head("enum", &[], fmt)?;

        fmt.block(|fmt| {
            for variant in &self.variants {
                variant.fmt(fmt)?;
            }

            Ok(())
        })
    }
/// Formats the enum using the given formatter.
Formats the enum using the given formatter.
Formats the enum using the given formatter .
pub fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
        self.type_def.fmt_head("enum", &[], fmt)?;
        fmt.block(|fmt| {
            for variant in &self.variants {
                variant.fmt(fmt)?;
            }
            Ok(())
        })
    }
pub fn fmt ( & self , fmt : & mut Formatter ) -> fmt :: Result { self . type_def . fmt_head ( " " , & [ ] , fmt ) ? ; fmt . block ( | fmt | { for variant in & self . variants { variant . fmt ( fmt ) ? ; } Ok ( ( ) ) } ) }
Formats the enum using the given formatter.
Formats the enum using the given formatter .
&self
fmt
&mut Formatter
&self
fmt
&mut Formatter