Enum slog_extlog::stats::ChangeType
source · pub enum ChangeType {
Incr(usize),
Decr(usize),
SetTo(isize),
}
Expand description
Types of changes made to a statistic.
Variants§
Incr(usize)
Increment by a fixed amount.
Decr(usize)
Decrement by a fixed amount.
SetTo(isize)
Set to a specific value.
Trait Implementations§
source§impl Clone for ChangeType
impl Clone for ChangeType
source§fn clone(&self) -> ChangeType
fn clone(&self) -> ChangeType
Returns a copy 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 Debug for ChangeType
impl Debug for ChangeType
source§impl Hash for ChangeType
impl Hash for ChangeType
source§impl PartialEq for ChangeType
impl PartialEq for ChangeType
source§fn eq(&self, other: &ChangeType) -> bool
fn eq(&self, other: &ChangeType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ChangeType
impl StructuralEq for ChangeType
impl StructuralPartialEq for ChangeType
Auto Trait Implementations§
impl RefUnwindSafe for ChangeType
impl Send for ChangeType
impl Sync for ChangeType
impl Unpin for ChangeType
impl UnwindSafe for ChangeType
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