pub struct Printer<'a> { /* private fields */ }Implementations§
Source§impl<'a> Printer<'a>
impl<'a> Printer<'a>
pub fn new(cfg: &'a Config) -> Self
pub fn print_searching(&self, dirs: &[&Path], pattern: &str)
pub fn print_scanning_dups(&self, dirs: &[&Path], mode: &str, algo: &str)
pub fn print_results( &self, results: &[SearchMatch], _search_in_files: bool, elapsed: Duration, )
pub fn print_duplicates( &self, groups: &[DuplicateGroup], summary: &DuplicateSummary, elapsed: Duration, )
pub fn print_error(&self, msg: &str)
pub fn print_warn(&self, msg: &str)
pub fn print_info(&self, msg: &str)
Auto Trait Implementations§
impl<'a> Freeze for Printer<'a>
impl<'a> RefUnwindSafe for Printer<'a>
impl<'a> Send for Printer<'a>
impl<'a> Sync for Printer<'a>
impl<'a> Unpin for Printer<'a>
impl<'a> UnsafeUnpin for Printer<'a>
impl<'a> UnwindSafe 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more