[][src]Struct b2histogram::Bucket

pub struct Bucket {
    pub start: u64,
    pub end: u64,
    pub count: u64,
}

A bucket maintains a count of observations between its begin and end endpoints.

Buckets include their endpoint values (known as a "closed-closed" interval). Each bucket covers [2^n, (2^(n+1))-1] with the exception of the top-most bucket which covers [2^62, +infinity].

Fields

start: u64

Beginning of the range, inclusive

end: u64

Maximum value of the range, inclusive

count: u64

Number of observations in the bucket

Trait Implementations

impl Debug for Bucket[src]

Auto Trait Implementations

impl Unpin for Bucket

impl Send for Bucket

impl Sync for Bucket

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]