pub struct TransformStat { /* private fields */ }Expand description
A pair of StatSummary values tracking before/after a transformation.
Implementations§
Source§impl TransformStat
impl TransformStat
Sourcepub fn record_before(&mut self, v: f64)
pub fn record_before(&mut self, v: f64)
Records a before value.
Sourcepub fn record_after(&mut self, v: f64)
pub fn record_after(&mut self, v: f64)
Records an after value.
Sourcepub fn mean_ratio(&self) -> Option<f64>
pub fn mean_ratio(&self) -> Option<f64>
Returns the mean reduction ratio (after/before).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransformStat
impl RefUnwindSafe for TransformStat
impl Send for TransformStat
impl Sync for TransformStat
impl Unpin for TransformStat
impl UnsafeUnpin for TransformStat
impl UnwindSafe for TransformStat
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