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§
Uniform
Insert uniform indentation before every line
This format takes a static string as input and inserts it after every newline
Numbered
Inserts a number before the first line
This format hard codes the indentation level to match the indentation from
core::backtrace::Backtrace
Custom
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