Enum indenter::Format [−][src]
pub enum Format<'a> { Uniform { indentation: &'static str, }, Numbered { ind: usize, }, Custom { inserter: &'a mut Inserter, }, }
Expand description
The set of supported formats for indentation
Variants
Insert uniform indentation before every line
This format takes a static string as input and inserts it after every newline
Inserts a number before the first line
This format hard codes the indentation level to match the indentation from
core::backtrace::Backtrace
A custom indenter which is executed after every newline
Custom indenters are passed the current line number and the buffer to be written to as args
Fields of Custom
inserter: &'a mut Inserter
The custom indenter