Skip to main content

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".

Implementors§

Source§

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