[][src]Struct hdrhistogram::iterators::IterationValue

pub struct IterationValue<T: Counter> { /* fields omitted */ }

The value emitted at each step when iterating over a Histogram.

Methods

impl<T: Counter> IterationValue<T>[src]

pub fn new(
    value_iterated_to: u64,
    quantile: f64,
    quantile_iterated_to: f64,
    count_at_value: T,
    count_since_last_iteration: u64
) -> IterationValue<T>
[src]

Create a new IterationValue.

pub fn value_iterated_to(&self) -> u64[src]

The value iterated to. Some iterators provide a specific value inside the bucket, while others just use the highest value in the bucket.

pub fn percentile(&self) -> f64[src]

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.

pub fn quantile(&self) -> f64[src]

Quantile of recorded values that are at or below the current bucket.

pub fn quantile_iterated_to(&self) -> f64[src]

Quantile iterated to, which may be different than quantile() when an iterator provides information about the specific quantile it's iterating to.

pub fn count_at_value(&self) -> T[src]

Recorded count for values equivalent to value

pub fn count_since_last_iteration(&self) -> u64[src]

Number of values traversed since the last iteration step

Trait Implementations

impl<T: PartialEq + Counter> PartialEq<IterationValue<T>> for IterationValue<T>[src]

impl<T: Debug + Counter> Debug for IterationValue<T>[src]

Auto Trait Implementations

impl<T> Send for IterationValue<T> where
    T: Send

impl<T> Sync for IterationValue<T> where
    T: Sync

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]