Struct glean::DistributionData

source ·
pub struct DistributionData {
    pub values: HashMap<i64, i64, RandomState>,
    pub sum: i64,
    pub count: i64,
}
Expand description

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

Fields§

§values: HashMap<i64, i64, RandomState>

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

This can contain buckets with a count of 0.

§sum: i64

The accumulated sum of all the samples in the distribution.

§count: i64

The total number of entries in the distribution.

Trait Implementations§

Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Create a new handle for an Arc value Read more
Clone a handle Read more
Consume a handle, getting back the initial Arc<>
Get a clone of the Arc<> using a “borrowed” handle. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.