pub enum Printer<'a> {
Standard(Standard<Escaped<&'a mut Buffer>>),
Summary(Summary<Escaped<&'a mut Buffer>>),
Json(JSON<Escaped<&'a mut Buffer>>),
}Expand description
One archive’s printer, in whichever mode the run asked for.
An enum rather than a trait object because the three printers’ sinks are
unrelated concrete types with different lifetimes, and boxing them would
buy nothing: the match arms live in exactly one place, search::search_member.
Variants§
Standard(Standard<Escaped<&'a mut Buffer>>)
Summary(Summary<Escaped<&'a mut Buffer>>)
Json(JSON<Escaped<&'a mut Buffer>>)
Auto Trait Implementations§
impl<'a> !Freeze for Printer<'a>
impl<'a> !RefUnwindSafe for Printer<'a>
impl<'a> !Sync for Printer<'a>
impl<'a> !UnwindSafe for Printer<'a>
impl<'a> Send for Printer<'a>
impl<'a> Unpin for Printer<'a>
impl<'a> UnsafeUnpin for Printer<'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