Struct histo::Histogram
[−]
[src]
pub struct Histogram { /* fields omitted */ }
A histogram is a collection of samples, sorted into buckets.
See the crate level documentation for more details.
Methods
impl Histogram
[src]
fn with_buckets(num_buckets: u64) -> Histogram
Construct a new histogram with the given number of buckets.
Panics
Panics if the number of buckets is zero.
fn add(&mut self, sample: u64)
Add a new sample to this histogram.
fn buckets(&self) -> Buckets
Get an iterator over this histogram's buckets.
Trait Implementations
impl Debug for Histogram
[src]
impl Clone for Histogram
[src]
fn clone(&self) -> Histogram
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more