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

        match self.fields {
            Fields::Empty => {
                write!(fmt, ";\n")?;
            }
            Fields::Tuple(..) => {
                write!(fmt, ";\n")?;
            }
            _ => {}
        }

        Ok(())
    }
/// Formats the struct using the given formatter.
Formats the struct using the given formatter.
Formats the struct using the given formatter .
pub fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
        self.type_def.fmt_head("struct", &[], fmt)?;
        self.fields.fmt(fmt)?;
        match self.fields {
            Fields::Empty => {
                write!(fmt, ";\n")?;
            }
            Fields::Tuple(..) => {
                write!(fmt, ";\n")?;
            }
            _ => {}
        }
        Ok(())
    }
pub fn fmt ( & self , fmt : & mut Formatter ) -> fmt :: Result { self . type_def . fmt_head ( " " , & [ ] , fmt ) ? ; self . fields . fmt ( fmt ) ? ; match self . fields { Fields :: Empty => { write ! ( fmt " \n " ) ? ; } Fields :: Tuple ( .. ) => { write ! ( fmt " \n " ) ? ; } _ => { } } Ok ( ( ) ) }
Formats the struct using the given formatter.
Formats the struct using the given formatter .
&self
fmt
&mut Formatter
&self
fmt
&mut Formatter