pub trait StatisticExt: Statistic {
// Provided method
fn get_aggregation_and_reset(&mut self) -> Option<Self::Aggregation> { ... }
}
Expand description
Extension methods for Statistic
s.
Provided Methods§
Sourcefn get_aggregation_and_reset(&mut self) -> Option<Self::Aggregation>
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.