pub fn block<F>(&mut self, f: F) -> fmt::Result
    where
        F: FnOnce(&mut Self) -> fmt::Result,
    {
        if !self.is_start_of_line() {
            write!(self, " ")?;
        }

        write!(self, "{{\n")?;
        self.indent(f)?;
        write!(self, "}}\n")?;
        Ok(())
    }
/// Wrap the given function inside a block.
Wrap the given function inside a block.
Wrap the given function inside a block .
pub fn block<F>(&mut self, f: F) -> fmt::Result
    where
        F: FnOnce(&mut Self) -> fmt::Result,
    {
        if !self.is_start_of_line() {
            write!(self, " ")?;
        }
        write!(self, "{{\n")?;
        self.indent(f)?;
        write!(self, "}}\n")?;
        Ok(())
    }
pub fn block < F > ( & mut self , f : F ) -> fmt :: Result where F : FnOnce ( & mut Self ) -> fmt :: Result , { if ! self . is_start_of_line ( ) { write ! ( self " " ) ? ; } write ! ( self " \n " ) ? ; self . indent ( f ) ? ; write ! ( self " \n " ) ? ; Ok ( ( ) ) }
Wrap the given function inside a block.
Wrap the given function inside a block .
&mut self
f
F