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
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Format<'a>
impl<'a> !Send for Format<'a>
impl<'a> !Sync for Format<'a>
impl<'a> Unpin for Format<'a>
impl<'a> !UnwindSafe for Format<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more