pub struct TextStatsCounters { /* private fields */ }Implementations§
Source§impl TextStatsCounters
impl TextStatsCounters
pub const fn new(collect_stats: bool) -> Self
pub fn primary(&self) -> Option<&AtomicUsize>
pub fn files_with_matches(&self) -> Option<&AtomicUsize>
pub fn bytes_printed(&self) -> Option<&AtomicU64>
pub fn finish( self, candidates_len: usize, bytes_searched: u64, elapsed: Duration, ) -> Option<SearchStats>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TextStatsCounters
impl RefUnwindSafe for TextStatsCounters
impl Send for TextStatsCounters
impl Sync for TextStatsCounters
impl Unpin for TextStatsCounters
impl UnsafeUnpin for TextStatsCounters
impl UnwindSafe for TextStatsCounters
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