Struct glean::DistributionData[][src]

pub struct DistributionData {
    pub values: HashMap<u64, u64, RandomState>,
    pub sum: u64,
}

A snapshot of all buckets and the accumulated sum of a distribution.

Fields

values: HashMap<u64, u64, RandomState>

A map containig the bucket index mapped to the accumulated count.

This can contain buckets with a count of 0.

sum: u64

The accumulated sum of all the samples in the distribution.

Trait Implementations

impl Debug for DistributionData[src]

impl Serialize for DistributionData[src]

Auto Trait Implementations

impl RefUnwindSafe for DistributionData[src]

impl Send for DistributionData[src]

impl Sync for DistributionData[src]

impl Unpin for DistributionData[src]

impl UnwindSafe for DistributionData[src]

Blanket Implementations

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

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

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

impl<T> EncodableKey for T where
    T: Serialize

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

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

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> 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.