pub struct Summary {
pub attempted: usize,
pub count: usize,
pub mean: Option<f64>,
pub standard_deviation: Option<f64>,
pub min: Option<f64>,
pub p05: Option<f64>,
pub p50: Option<f64>,
pub p95: Option<f64>,
pub max: Option<f64>,
}Expand description
The usual numbers of a Distribution, for a report.
Fields§
§attempted: usizeThe runs tried.
count: usizeThe runs that gave a value.
mean: Option<f64>The mean, None with no values.
standard_deviation: Option<f64>The sample standard deviation (n − 1), None with fewer than two values.
min: Option<f64>The smallest value.
p05: Option<f64>The 5th percentile (Distribution::quantile).
p50: Option<f64>The median.
p95: Option<f64>The 95th percentile.
max: Option<f64>The largest value.
Trait Implementations§
impl Copy for Summary
Source§impl<'de> Deserialize<'de> for Summary
impl<'de> Deserialize<'de> for Summary
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
impl StructuralPartialEq for Summary
Auto Trait Implementations§
impl Freeze for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnsafeUnpin for Summary
impl UnwindSafe for Summary
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