Struct glean::DistributionData
source · [−]pub struct DistributionData {
pub values: HashMap<i64, i64, RandomState>,
pub sum: 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.
Trait Implementations
sourceimpl Debug for DistributionData
impl Debug for DistributionData
sourceimpl Serialize for DistributionData
impl Serialize for DistributionData
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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
Auto Trait Implementations
impl RefUnwindSafe for DistributionData
impl Send for DistributionData
impl Sync for DistributionData
impl Unpin for DistributionData
impl UnwindSafe for DistributionData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more