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