pub struct ScopeGuard<'a> { /* private fields */ }Expand description
A scope guard that automatically pops when dropped.
Implementations§
Source§impl<'a> ScopeGuard<'a>
impl<'a> ScopeGuard<'a>
Sourcepub fn new(env: &'a mut NotationEnv) -> Self
pub fn new(env: &'a mut NotationEnv) -> Self
Create a new scope guard, pushing a new scope.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ScopeGuard<'a>
impl<'a> RefUnwindSafe for ScopeGuard<'a>
impl<'a> Send for ScopeGuard<'a>
impl<'a> Sync for ScopeGuard<'a>
impl<'a> Unpin for ScopeGuard<'a>
impl<'a> UnsafeUnpin for ScopeGuard<'a>
impl<'a> !UnwindSafe for ScopeGuard<'a>
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