pub struct SimpleCounter { /* private fields */ }
Expand description
Represents a simple monotonic unsigned integer counter. Wrapper for IntCounter type
Implementations§
Source§impl SimpleCounter
impl SimpleCounter
Sourcepub fn increment_by(&self, by: u64)
pub fn increment_by(&self, by: u64)
Increments the counter by the given number.
Auto Trait Implementations§
impl Freeze for SimpleCounter
impl RefUnwindSafe for SimpleCounter
impl Send for SimpleCounter
impl Sync for SimpleCounter
impl Unpin for SimpleCounter
impl UnwindSafe for SimpleCounter
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