pub struct Guard<'t> { /* private fields */ }Expand description
A type that increments a counter on drop. This allows us to issue the right
coz calls to begin and end for the duration of a scope, regardless of how
the scope was exited (e.g. by early return, ? or panic).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'t> Freeze for Guard<'t>
impl<'t> RefUnwindSafe for Guard<'t>
impl<'t> Send for Guard<'t>
impl<'t> Sync for Guard<'t>
impl<'t> Unpin for Guard<'t>
impl<'t> UnwindSafe for Guard<'t>
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