pub trait Histogram: Clear + Serialize {
    fn with_bound(max_value: u64) -> Self;
    fn record(&self, value: u64);
}
Expand description

A trait for Histograms

Required Methods

Build a new histogram with the given max bounds

Record a value to the histogram.

It will saturate if the value is higher than the histogram’s max_value.

Implementations on Foreign Types

Implementors