Struct glean::DistributionData [−][src]
pub struct DistributionData {
pub values: HashMap<u64, u64, RandomState>,
pub sum: u64,
}
Expand description
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
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more