pub struct NoOpGuard;Expand description
No-op guard that does nothing
This is useful as a placeholder when guards are conditionally created but you still want to maintain the same interface.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NoOpGuard
impl RefUnwindSafe for NoOpGuard
impl Send for NoOpGuard
impl Sync for NoOpGuard
impl Unpin for NoOpGuard
impl UnsafeUnpin for NoOpGuard
impl UnwindSafe for NoOpGuard
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