Struct hashbrown::scopeguard::ScopeGuard
source · pub struct ScopeGuard<T, F>{
dropfn: F,
value: T,
}
Fields§
§dropfn: F
§value: T
Implementations§
source§impl<T, F> ScopeGuard<T, F>
impl<T, F> ScopeGuard<T, F>
pub fn into_inner(guard: Self) -> T
Trait Implementations§
source§impl<T, F> Deref for ScopeGuard<T, F>
impl<T, F> Deref for ScopeGuard<T, F>
source§impl<T, F> DerefMut for ScopeGuard<T, F>
impl<T, F> DerefMut for ScopeGuard<T, F>
Auto Trait Implementations§
impl<T, F> Freeze for ScopeGuard<T, F>
impl<T, F> RefUnwindSafe for ScopeGuard<T, F>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F> Send for ScopeGuard<T, F>
impl<T, F> Sync for ScopeGuard<T, F>
impl<T, F> Unpin for ScopeGuard<T, F>
impl<T, F> UnwindSafe for ScopeGuard<T, F>where
F: UnwindSafe,
T: UnwindSafe,
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