Struct histogram::Bucket [] [src]

pub struct Bucket { /* fields omitted */ }

value-quantized section of Histogram

Methods

impl Bucket
[src]

[src]

return the sample value for the bucket

Example

let mut h = Histogram::new();
let b = h.into_iter().next().unwrap();
assert_eq!(b.value(), 0);

[src]

return the sample counts for the bucket

Example

let h = Histogram::new();
let b = h.into_iter().next().unwrap();
assert_eq!(b.count(), 0);

[src]

return the bucket id

Example

let h = Histogram::new();
let b = h.into_iter().next().unwrap();
assert_eq!(b.id(), 0);

[src]

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Bucket
[src]

impl Debug for Bucket
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Bucket

impl Sync for Bucket