pub struct Bucket { /* private fields */ }
Expand description
value-quantized section of Histogram
Implementations§
Source§impl Bucket
impl Bucket
Sourcepub fn value(self) -> u64
pub 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(), 0);
Sourcepub fn count(self) -> u64
pub 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);
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bucket
impl RefUnwindSafe for Bucket
impl Send for Bucket
impl Sync for Bucket
impl Unpin for Bucket
impl UnwindSafe for Bucket
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more