Trait mycelium_util::fmt::WriteExt
source · 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§
sourcefn with_indent(&mut self, indent: usize) -> WithIndent<'_, Self>where
Self: Sized,
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.