pub struct Fail { /* private fields */ }Expand description
An assertion that will unconditionally fail.
Trait Implementations§
Source§impl Assertion for Fail
impl Assertion for Fail
Source§fn should_fail(self) -> ShouldFail<Self>where
Self: Sized,
fn should_fail(self) -> ShouldFail<Self>where
Self: Sized,
Wrap the assertion in
ShouldFail, inverting its condition.Auto Trait Implementations§
impl Freeze for Fail
impl RefUnwindSafe for Fail
impl Send for Fail
impl Sync for Fail
impl Unpin for Fail
impl UnsafeUnpin for Fail
impl UnwindSafe for Fail
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