pub struct Printer {
pub skin: MadSkin,
pub fields: Fields,
pub terminal_width: usize,
pub detail_level: usize,
pub key: Key,
pub date_filter: Option<DateTimeFilter>,
pub changes: bool,
pub all_paths: bool,
}
Fields§
§skin: MadSkin
§fields: Fields
§terminal_width: usize
§detail_level: usize
§key: Key
§date_filter: Option<DateTimeFilter>
§changes: bool
§all_paths: bool
Implementations§
source§impl Printer
impl Printer
pub fn new(args: &Args, log_base: &LogBase) -> Self
pub fn print(&self, expander: OwningTemplateExpander<'_>, template: &str)
pub fn md_hits(&self, hits: usize) -> String
pub fn md_bytes(&self, bytes: u64) -> String
pub fn print_groups<'b, T, F, G>( &self, section: &Section, log_lines: &'b [LogLine], filter: F, grouper: G, trend_computer: Option<&TrendComputer> )where T: Display + Hash + Eq + 'b, F: Fn(&&LogLine) -> bool, G: for<'a> Fn(&'a &'b LogLine) -> T,
pub fn print_groups_no_trends<'b, T, F, G>( &self, section: &Section, log_lines: &'b [LogLine], filter: F, grouper: G )where T: Display + Hash + Eq + 'b, F: Fn(&&LogLine) -> bool, G: for<'a> Fn(&'a &'b LogLine) -> T,
pub fn print_groups_trends<'b, T, F, G>( &self, section: &Section, log_lines: &'b [LogLine], filter: F, grouper: G, trend_computer: &TrendComputer )where T: Display + Hash + Eq + 'b, F: Fn(&&LogLine) -> bool, G: for<'a> Fn(&'a &'b LogLine) -> T,
pub fn print_table_with_trends<'b, T, I>( &self, title: &str, section: &Section, groups: I, total_count: usize )where T: Display + Hash + Eq + 'b, I: Iterator<Item = &'b LineGroup<'b, T>>,
Auto Trait Implementations§
impl RefUnwindSafe for Printer
impl Send for Printer
impl Sync for Printer
impl Unpin for Printer
impl UnwindSafe for Printer
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