pub struct ExponentialHistogram<T> {
    pub size: usize,
    pub floor: T,
    pub initial_step: T,
    pub step_multiplier: T,
    pub counts: Vec<T>,
    pub indexes: Option<Vec<usize>>,
}Expand description
An exponential histogram property.
Fields§
§size: usizeThe number of buckets. If indexes is None this should equal counts.len().
floor: TThe floor of the lowest bucket (not counting the negative-infinity bucket).
initial_step: TThe increment for the second floor.
step_multiplier: TThe multiplier for each successive floor.
counts: Vec<T>The number of items in each bucket.
indexes: Option<Vec<usize>>If Some<_>, the indexes of nonzero counts.
Trait Implementations§
Source§impl<T> Clone for ExponentialHistogram<T>where
    T: Clone,
 
impl<T> Clone for ExponentialHistogram<T>where
    T: Clone,
Source§fn clone(&self) -> ExponentialHistogram<T>
 
fn clone(&self) -> ExponentialHistogram<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl<T> Debug for ExponentialHistogram<T>where
    T: Debug,
 
impl<T> Debug for ExponentialHistogram<T>where
    T: Debug,
Source§impl<'de, T> Deserialize<'de> for ExponentialHistogram<T>where
    T: Deserialize<'de>,
 
impl<'de, T> Deserialize<'de> for ExponentialHistogram<T>where
    T: Deserialize<'de>,
Source§fn deserialize<__D>(
    __deserializer: __D,
) -> Result<ExponentialHistogram<T>, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<ExponentialHistogram<T>, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> PartialEq for ExponentialHistogram<T>where
    T: PartialEq,
 
impl<T> PartialEq for ExponentialHistogram<T>where
    T: PartialEq,
Source§impl<T> Serialize for ExponentialHistogram<T>where
    T: Serialize,
 
impl<T> Serialize for ExponentialHistogram<T>where
    T: Serialize,
Source§fn 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
impl<T> StructuralPartialEq for ExponentialHistogram<T>
Auto Trait Implementations§
impl<T> Freeze for ExponentialHistogram<T>where
    T: Freeze,
impl<T> RefUnwindSafe for ExponentialHistogram<T>where
    T: RefUnwindSafe,
impl<T> Send for ExponentialHistogram<T>where
    T: Send,
impl<T> Sync for ExponentialHistogram<T>where
    T: Sync,
impl<T> Unpin for ExponentialHistogram<T>where
    T: Unpin,
impl<T> UnwindSafe for ExponentialHistogram<T>where
    T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
    D: ResourceDialect,
 
impl<T, D> Encode<Ambiguous1, D> for Twhere
    D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
    D: ResourceDialect,
 
impl<T, D> Encode<Ambiguous2, D> for Twhere
    D: ResourceDialect,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more