pub struct StatsComparison {
pub before: TreeStats,
pub after: TreeStats,
pub absolute: StatsDiff,
pub percentage: StatsPercentageChange,
}Expand description
Combined statistics comparison between two tree snapshots.
before and after contain the full collected statistics for each tree.
absolute is computed as after - before, and percentage uses before
as the baseline.
Created by calling Prolly::stats_diff
or StatsComparison::new.
Fields§
§before: TreeStatsStatistics collected from the baseline tree.
after: TreeStatsStatistics collected from the candidate/current tree.
absolute: StatsDiffAbsolute metric deltas computed as after - before.
percentage: StatsPercentageChangePercentage metric deltas using before as the baseline.
Implementations§
Trait Implementations§
Source§impl Clone for StatsComparison
impl Clone for StatsComparison
Source§fn clone(&self) -> StatsComparison
fn clone(&self) -> StatsComparison
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StatsComparison
impl Debug for StatsComparison
Source§impl<'de> Deserialize<'de> for StatsComparison
impl<'de> Deserialize<'de> for StatsComparison
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StatsComparison
impl PartialEq for StatsComparison
Source§impl Serialize for StatsComparison
impl Serialize for StatsComparison
impl StructuralPartialEq for StatsComparison
Auto Trait Implementations§
impl Freeze for StatsComparison
impl RefUnwindSafe for StatsComparison
impl Send for StatsComparison
impl Sync for StatsComparison
impl Unpin for StatsComparison
impl UnsafeUnpin for StatsComparison
impl UnwindSafe for StatsComparison
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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