pub enum CounterOperation {
Increment,
Decrement,
Set,
}Expand description
Counter operations
Variants§
Increment
Add a value to the current count
Decrement
Subtract a value from the current count
Set
Set the counter to an absolute value
Implementations§
Trait Implementations§
Source§impl Clone for CounterOperation
impl Clone for CounterOperation
Source§fn clone(&self) -> CounterOperation
fn clone(&self) -> CounterOperation
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 Debug for CounterOperation
impl Debug for CounterOperation
Source§impl PartialEq for CounterOperation
impl PartialEq for CounterOperation
impl StructuralPartialEq for CounterOperation
Auto Trait Implementations§
impl Freeze for CounterOperation
impl RefUnwindSafe for CounterOperation
impl Send for CounterOperation
impl Sync for CounterOperation
impl Unpin for CounterOperation
impl UnsafeUnpin for CounterOperation
impl UnwindSafe for CounterOperation
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