StatisticExt

Trait StatisticExt 

Source
pub trait StatisticExt: Statistic {
    // Provided method
    fn get_aggregation_and_reset(&mut self) -> Option<Self::Aggregation> { ... }
}
Expand description

Extension methods for Statistics.

Provided Methods§

Source

fn get_aggregation_and_reset(&mut self) -> Option<Self::Aggregation>

Gets the statistical aggregation and resets the statistic.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<F> StatisticExt for F
where F: Statistic,