pub struct Guard<F: FnMut()>(pub Option<F>);
Tuple Fields§
§0: Option<F>
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for Guard<F>where
F: Freeze,
impl<F> RefUnwindSafe for Guard<F>where
F: RefUnwindSafe,
impl<F> Send for Guard<F>where
F: Send,
impl<F> Sync for Guard<F>where
F: Sync,
impl<F> Unpin for Guard<F>where
F: Unpin,
impl<F> UnwindSafe for Guard<F>where
F: 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