pub trait HistogramFn {
// Required method
fn record(&self, value: f64);
// Provided method
fn record_many(&self, value: f64, count: usize) { ... }
}Expand description
A histogram handler.
Required Methods§
Provided Methods§
Sourcefn record_many(&self, value: f64, count: usize)
fn record_many(&self, value: f64, count: usize)
Records a value into the histogram multiple times.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".