Struct mimicry::EmptyGuard
source · Expand description
Exclusive guard to set the mock state without an attached state.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for EmptyGuard<T>where
<<T as Mock>::Shared as LockMock<'static, <T as Mock>::Base>>::EmptyGuard: RefUnwindSafe,
impl<T> Send for EmptyGuard<T>where
<<T as Mock>::Shared as LockMock<'static, <T as Mock>::Base>>::EmptyGuard: Send,
impl<T> Sync for EmptyGuard<T>where
<<T as Mock>::Shared as LockMock<'static, <T as Mock>::Base>>::EmptyGuard: Sync,
impl<T> Unpin for EmptyGuard<T>where
<<T as Mock>::Shared as LockMock<'static, <T as Mock>::Base>>::EmptyGuard: Unpin,
impl<T> UnwindSafe for EmptyGuard<T>where
<<T as Mock>::Shared as LockMock<'static, <T as Mock>::Base>>::EmptyGuard: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more