pub struct Enum<K>where
K: Flatten,{ /* private fields */ }
Expand description
Enumerated histograms.
Enumerated histogram generalize Count histograms to families of keys known at compile-time. They are useful, for instance, to know how often users have picked a specific choice from several, or how many times each kind of error has been triggered, etc.
With SerializationFormat::SimpleJson
, these histograms are
serialized as an array of numbers, in the order of enum values.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for Enum<K>
impl<K> RefUnwindSafe for Enum<K>where
K: RefUnwindSafe,
impl<K> Send for Enum<K>where
K: Send,
impl<K> Sync for Enum<K>where
K: Sync,
impl<K> Unpin for Enum<K>where
K: Unpin,
impl<K> UnwindSafe for Enum<K>where
K: 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