pub struct ScopeGuard(/* private fields */);
Expand description
A scope guard.
This is returned from Hub::push_scope
and will automatically pop the
scope on drop.
Trait Implementations§
Source§impl Debug for ScopeGuard
impl Debug for ScopeGuard
Source§impl Default for ScopeGuard
impl Default for ScopeGuard
Source§fn default() -> ScopeGuard
fn default() -> ScopeGuard
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScopeGuard
impl RefUnwindSafe for ScopeGuard
impl Send for ScopeGuard
impl Sync for ScopeGuard
impl Unpin for ScopeGuard
impl UnwindSafe for ScopeGuard
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