pub struct ShouldFail<A: Assertion>(/* private fields */);Expand description
An assertion that will fail if the given assertion was true and succeed if the given assertion was false.
Trait Implementations§
Source§impl<A: Assertion> Assertion for ShouldFail<A>
impl<A: Assertion> Assertion for ShouldFail<A>
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.Source§impl<A: Assertion> Debug for ShouldFail<A>
impl<A: Assertion> Debug for ShouldFail<A>
Source§impl<A: Assertion> Display for ShouldFail<A>
impl<A: Assertion> Display for ShouldFail<A>
Source§impl<A: Assertion> Termination for ShouldFail<A>
Available on crate feature std only.
impl<A: Assertion> Termination for ShouldFail<A>
Available on crate feature
std only.Auto Trait Implementations§
impl<A> Freeze for ShouldFail<A>where
A: Freeze,
impl<A> RefUnwindSafe for ShouldFail<A>where
A: RefUnwindSafe,
impl<A> Send for ShouldFail<A>where
A: Send,
impl<A> Sync for ShouldFail<A>where
A: Sync,
impl<A> Unpin for ShouldFail<A>where
A: Unpin,
impl<A> UnsafeUnpin for ShouldFail<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for ShouldFail<A>where
A: 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