Struct hdrhistogram::iterators::IterationValue
source · pub struct IterationValue<T: Counter> { /* private fields */ }
Expand description
The value emitted at each step when iterating over a Histogram
.
Implementations§
source§impl<T: Counter> IterationValue<T>
impl<T: Counter> IterationValue<T>
sourcepub fn new(
value_iterated_to: u64,
quantile: f64,
quantile_iterated_to: f64,
count_at_value: T,
count_since_last_iteration: u64,
) -> IterationValue<T>
pub fn new( value_iterated_to: u64, quantile: f64, quantile_iterated_to: f64, count_at_value: T, count_since_last_iteration: u64, ) -> IterationValue<T>
Create a new IterationValue.
sourcepub fn value_iterated_to(&self) -> u64
pub fn value_iterated_to(&self) -> u64
The value iterated to. Some iterators provide a specific value inside the bucket, while others just use the highest value in the bucket.
sourcepub fn percentile(&self) -> f64
pub fn percentile(&self) -> f64
Percent of recorded values that are at or below the current bucket.
This is simply the quantile multiplied by 100.0, so if you care about maintaining the best
floating-point precision, use quantile()
instead.
sourcepub fn quantile(&self) -> f64
pub fn quantile(&self) -> f64
Quantile of recorded values that are at or below the current bucket.
sourcepub fn quantile_iterated_to(&self) -> f64
pub fn quantile_iterated_to(&self) -> f64
Quantile iterated to, which may be different than quantile()
when an iterator provides
information about the specific quantile it’s iterating to.
sourcepub fn count_at_value(&self) -> T
pub fn count_at_value(&self) -> T
Recorded count for values equivalent to value
sourcepub fn count_since_last_iteration(&self) -> u64
pub fn count_since_last_iteration(&self) -> u64
Number of values traversed since the last iteration step
Trait Implementations§
impl<T: Counter> StructuralPartialEq for IterationValue<T>
Auto Trait Implementations§
impl<T> Freeze for IterationValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for IterationValue<T>where
T: RefUnwindSafe,
impl<T> Send for IterationValue<T>where
T: Send,
impl<T> Sync for IterationValue<T>where
T: Sync,
impl<T> Unpin for IterationValue<T>where
T: Unpin,
impl<T> UnwindSafe for IterationValue<T>where
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