pub struct BasicStatsCounters { /* private fields */ }Expand description
The raw accumulated counters behind the Basic Statistics table.
Kept separate from BasicStats so that exactly the same numbers can be
formatted for the text/HTML report and for the live terminal table, with
BasicStatsCounters::rows as the single source of truth for both — which
is also why the counters themselves are private: everything outside this
module wants the formatted rows, not the raw tallies. It is Copy so a
consistent snapshot can be handed to the progress display without holding a
lock while rendering.
Implementations§
Source§impl BasicStatsCounters
impl BasicStatsCounters
Sourcepub const MEASURES: [&'static str; 8]
pub const MEASURES: [&'static str; 8]
The measures reported, in report order, minus the leading “Filename”
row. Self::rows returns a value for each of these, in this order.
Trait Implementations§
Source§impl Clone for BasicStatsCounters
impl Clone for BasicStatsCounters
impl Copy for BasicStatsCounters
Source§impl Debug for BasicStatsCounters
impl Debug for BasicStatsCounters
Source§impl Default for BasicStatsCounters
Spelled out rather than derived: lowest_char starts at a sentinel above
the range and is lowered, so a derived all-zeroes default would be a state
the counters can never legitimately reach — and one whose rows() reports
a bogus encoding. This is the only constructor, so there is nowhere for that
state to come from.
impl Default for BasicStatsCounters
Spelled out rather than derived: lowest_char starts at a sentinel above
the range and is lowered, so a derived all-zeroes default would be a state
the counters can never legitimately reach — and one whose rows() reports
a bogus encoding. This is the only constructor, so there is nowhere for that
state to come from.
Auto Trait Implementations§
impl Freeze for BasicStatsCounters
impl RefUnwindSafe for BasicStatsCounters
impl Send for BasicStatsCounters
impl Sync for BasicStatsCounters
impl Unpin for BasicStatsCounters
impl UnsafeUnpin for BasicStatsCounters
impl UnwindSafe for BasicStatsCounters
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
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.