pub trait WriteExt: Write {
    // Provided method
    fn with_indent(&mut self, indent: usize) -> WithIndent<'_, Self>
       where Self: Sized { ... }
}
Expand description

Extension trait adding additional methods to types implementing core::fmt::Write.

Provided Methods§

source

fn with_indent(&mut self, indent: usize) -> WithIndent<'_, Self>
where Self: Sized,

Wraps self in a WithIndent writer that indents every new line that’s written to it by indent spaces.

Implementors§

source§

impl<W> WriteExt for W
where W: Write,