pub fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
        if let Some(ref before) = self.before {
            write!(fmt, "{}", before)?;
        }

        // Inlined `Formatter::fmt`

        if !fmt.is_start_of_line() {
            write!(fmt, " ")?;
        }

        write!(fmt, "{{\n")?;

        fmt.indent(|fmt| {
            for b in &self.body {
                b.fmt(fmt)?;
            }

            Ok(())
        })?;

        write!(fmt, "}}")?;

        if let Some(ref after) = self.after {
            write!(fmt, "{}", after)?;
        }

        write!(fmt, "\n")?;
        Ok(())
    }
/// Formats the block using the given formatter.
Formats the block using the given formatter.
Formats the block using the given formatter .
pub fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
        if let Some(ref before) = self.before {
            write!(fmt, "{}", before)?;
        }
        // Inlined `Formatter::fmt`
        if !fmt.is_start_of_line() {
            write!(fmt, " ")?;
        }
        write!(fmt, "{{\n")?;
        fmt.indent(|fmt| {
            for b in &self.body {
                b.fmt(fmt)?;
            }
            Ok(())
        })?;
        write!(fmt, "}}")?;
        if let Some(ref after) = self.after {
            write!(fmt, "{}", after)?;
        }
        write!(fmt, "\n")?;
        Ok(())
    }
pub fn fmt ( & self , fmt : & mut Formatter ) -> fmt :: Result { if let Some ( ref before ) = self . before { write ! ( fmt " " before ) ? ; } // Inlined `Formatter::fmt` if ! fmt . is_start_of_line ( ) { write ! ( fmt " " ) ? ; } write ! ( fmt " \n " ) ? ; fmt . indent ( | fmt | { for b in & self . body { b . fmt ( fmt ) ? ; } Ok ( ( ) ) } ) ? ; write ! ( fmt " " ) ? ; if let Some ( ref after ) = self . after { write ! ( fmt " " after ) ? ; } write ! ( fmt " \n " ) ? ; Ok ( ( ) ) }
Formats the block using the given formatter.
Formats the block using the given formatter .
&self
fmt
&mut Formatter
&self
fmt
&mut Formatter