pub struct RoundStatsAvg {
pub len: usize,
pub min: RoundStats,
pub max: RoundStats,
pub mean: RoundStats,
}Available on crate features
test-utils only.Expand description
Summary values for a list of RoundStats.
Fields§
§len: usizeThe number of rounds for which this average is calculated.
min: RoundStatsThe minimum values of the list.
max: RoundStatsThe maximum values of the list.
mean: RoundStatsThe mean values of the list.
Implementations§
Source§impl RoundStatsAvg
impl RoundStatsAvg
Sourcepub fn diff(&self, other: &Self) -> RoundStatsAvgDiff
pub fn diff(&self, other: &Self) -> RoundStatsAvgDiff
Calculates the difference, as factors, between self and other.
Sourcepub fn avg(rows: &[Self]) -> Self
pub fn avg(rows: &[Self]) -> Self
Calculates the average between a list of RoundStatsAvg.
Trait Implementations§
Source§impl Clone for RoundStatsAvg
impl Clone for RoundStatsAvg
Source§fn clone(&self) -> RoundStatsAvg
fn clone(&self) -> RoundStatsAvg
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 RoundStatsAvg
impl Debug for RoundStatsAvg
Source§impl Default for RoundStatsAvg
impl Default for RoundStatsAvg
Source§fn default() -> RoundStatsAvg
fn default() -> RoundStatsAvg
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RoundStatsAvg
impl<'de> Deserialize<'de> for RoundStatsAvg
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
Auto Trait Implementations§
impl Freeze for RoundStatsAvg
impl RefUnwindSafe for RoundStatsAvg
impl Send for RoundStatsAvg
impl Sync for RoundStatsAvg
impl Unpin for RoundStatsAvg
impl UnwindSafe for RoundStatsAvg
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