pub struct Flag { /* private fields */ }
Expand description
Flag histograms.
This histogram has only two states. Until the first call to
record()
, it is unset. Once record()
has been called once,
it is set and won’t change anymore. This type is useful if you
need to track whether a feature was ever used during a session.
With SerializationFormat::SimpleJson
, these histograms are
serialized as a plain number 0 (unset)/1 (set).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Flag
impl RefUnwindSafe for Flag
impl Send for Flag
impl Sync for Flag
impl Unpin for Flag
impl UnwindSafe for Flag
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