Struct histogram::HistogramBucket [] [src]

pub struct HistogramBucket {
    // some fields omitted
}

Methods

impl HistogramBucket
[src]

fn value(self) -> u64

return the sample value for the bucket

Example

use histogram::*;

let mut h = Histogram::new().unwrap();
let b = h.next().unwrap();

assert_eq!(b.value(), 1);

fn count(self) -> u64

return the sample counts for the bucket

Example

use histogram::*;

let mut h = Histogram::new().unwrap();
let b = h.next().unwrap();

assert_eq!(b.count(), 0);

fn id(self) -> u64

return the bucket id

Example

use histogram::*;

let mut h = Histogram::new().unwrap();
let b = h.next().unwrap();

assert_eq!(b.id(), 0);

Trait Implementations

impl Copy for HistogramBucket
[src]

impl Clone for HistogramBucket
[src]

fn clone(&self) -> HistogramBucket

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