Struct histogram::Bucket
[−]
[src]
pub struct Bucket { // some fields omitted }
value-quantized section of Histogram
Methods
impl Bucket
[src]
fn value(self) -> u64
return the sample value for the bucket
Example
let mut h = Histogram::new(); let b = h.into_iter().next().unwrap(); assert_eq!(b.value(), 1);
fn count(self) -> u64
return the sample counts for the bucket
Example
let h = Histogram::new(); let b = h.into_iter().next().unwrap(); assert_eq!(b.count(), 0);
fn id(self) -> u64
return the bucket id
Example
let h = Histogram::new(); let b = h.into_iter().next().unwrap(); assert_eq!(b.id(), 0);
fn width(self) -> u64
return the width of the bucket
Example
let h = Histogram::new(); let b = h.into_iter().next().unwrap(); assert_eq!(b.width(), 1);
Trait Implementations
impl Clone for Bucket
[src]
fn clone(&self) -> Bucket
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