pub struct StatsWithUnit<'a> {
pub stats: &'a Stats,
pub unit: Option<&'a str>,
}Expand description
A wrapper around Stats that includes an optional unit for the mean value. When displayed, only the mean (μ) will have the unit suffix. Sigma (σ) and MAD remain unitless as they are dispersion measures.
Fields§
§stats: &'a Stats§unit: Option<&'a str>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for StatsWithUnit<'a>
impl<'a> RefUnwindSafe for StatsWithUnit<'a>
impl<'a> Send for StatsWithUnit<'a>
impl<'a> Sync for StatsWithUnit<'a>
impl<'a> Unpin for StatsWithUnit<'a>
impl<'a> UnwindSafe for StatsWithUnit<'a>
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<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
Source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
Source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
Source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more