pub struct PruningMetrics { /* private fields */ }Expand description
Counters tracking pruning metrics
For example, a file scanner initially is planned to scan 10 files, but skipped 8 of them using statistics, the pruning metrics would look like: 10 total -> 2 matched
Note cloneing update the same underlying metrics
Implementations§
Source§impl PruningMetrics
impl PruningMetrics
Sourcepub fn add_pruned(&self, n: usize)
pub fn add_pruned(&self, n: usize)
Add n to the metric’s pruned value
Sourcepub fn add_matched(&self, n: usize)
pub fn add_matched(&self, n: usize)
Add n to the metric’s matched value
Sourcepub fn subtract_matched(&self, n: usize)
pub fn subtract_matched(&self, n: usize)
Subtract n to the metric’s matched value.
Trait Implementations§
Source§impl Clone for PruningMetrics
impl Clone for PruningMetrics
Source§fn clone(&self) -> PruningMetrics
fn clone(&self) -> PruningMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PruningMetrics
impl Debug for PruningMetrics
Source§impl Default for PruningMetrics
impl Default for PruningMetrics
Auto Trait Implementations§
impl Freeze for PruningMetrics
impl RefUnwindSafe for PruningMetrics
impl Send for PruningMetrics
impl Sync for PruningMetrics
impl Unpin for PruningMetrics
impl UnwindSafe for PruningMetrics
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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