Struct metrics::DetailedHistogram
source · pub struct DetailedHistogram<T: NumberType, D: Details<T>> {
buckets: Vec<Bucket<T>>,
values: Option<Vec<D>>,
}
Expand description
A histogram that optionally holds details about each added value. These values let us compute standard deviation and median.
Fields§
§buckets: Vec<Bucket<T>>
§values: Option<Vec<D>>
Implementations§
source§impl<T: NumberType, D: Details<T>> DetailedHistogram<T, D>
impl<T: NumberType, D: Details<T>> DetailedHistogram<T, D>
fn new_internal(ranges: &[Range<T>], details: bool) -> Result<Self>
sourcepub fn new(ranges: &[Range<T>]) -> Result<Self>
pub fn new(ranges: &[Range<T>]) -> Result<Self>
Creates an histogram with given ranges of buckets.
sourcepub fn simple_stat(&self) -> SimpleStat<T>
pub fn simple_stat(&self) -> SimpleStat<T>
Returns simple stat for the histogram.
Trait Implementations§
source§impl<T: NumberType, D: Details<T>> Debug for DetailedHistogram<T, D>
impl<T: NumberType, D: Details<T>> Debug for DetailedHistogram<T, D>
source§impl<T: NumberType, D: Details<T>> SummaryStats<T> for DetailedHistogram<T, D>
impl<T: NumberType, D: Details<T>> SummaryStats<T> for DetailedHistogram<T, D>
Auto Trait Implementations§
impl<T, D> RefUnwindSafe for DetailedHistogram<T, D>where
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, D> Send for DetailedHistogram<T, D>
impl<T, D> Sync for DetailedHistogram<T, D>
impl<T, D> Unpin for DetailedHistogram<T, D>
impl<T, D> UnwindSafe for DetailedHistogram<T, D>where
D: UnwindSafe,
T: UnwindSafe,
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