pub fn fmt(&self, fmt: &mut Formatter<'_>) -> fmt::Result {
        for m in self.attributes.iter() {
            write!(fmt, "{}\n", m)?;
        }
        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 {
        for m in self.attributes.iter() {
            write!(fmt, "{}\n", m)?;
        }
        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 { for m in self . attributes . iter ( ) { write ! ( fmt " \n " m ) ? ; } 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<'_>