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.

Object Safety§

This trait is not object safe.

Implementors§

source§

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