pub struct TestHomeGuard { /* private fields */ }Expand description
RAII guard returned by with_test_home_guard — restores the prior
override on drop. Used by test harnesses (like TestEnvBuilder) that want
to install an override without wrapping the whole test in a closure.
Trait Implementations§
Source§impl Drop for TestHomeGuard
impl Drop for TestHomeGuard
Auto Trait Implementations§
impl Freeze for TestHomeGuard
impl RefUnwindSafe for TestHomeGuard
impl Send for TestHomeGuard
impl Sync for TestHomeGuard
impl Unpin for TestHomeGuard
impl UnsafeUnpin for TestHomeGuard
impl UnwindSafe for TestHomeGuard
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