pub struct CounterGuard(/* private fields */);
Expand description
An RAII structure that keeps the underlying counter incremented until this guard is dropped.
Trait Implementations§
source§impl Debug for CounterGuard
impl Debug for CounterGuard
source§impl Drop for CounterGuard
impl Drop for CounterGuard
impl Unpin for CounterGuard
Auto Trait Implementations§
impl Freeze for CounterGuard
impl !RefUnwindSafe for CounterGuard
impl !Send for CounterGuard
impl !Sync for CounterGuard
impl !UnwindSafe for CounterGuard
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