pub struct UnaryAssertion<T> { /* private fields */ }Expand description
An assertion about an object this.
Trait Implementations§
Source§impl<T> Assertion for UnaryAssertion<T>where
T: Debug,
impl<T> Assertion for UnaryAssertion<T>where
T: Debug,
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<T> Debug for UnaryAssertion<T>where
T: Debug,
impl<T> Debug for UnaryAssertion<T>where
T: Debug,
Source§impl<T> Display for UnaryAssertion<T>where
T: Debug,
impl<T> Display for UnaryAssertion<T>where
T: Debug,
Source§impl<T> Termination for UnaryAssertion<T>where
T: Debug,
Available on crate feature std only.
impl<T> Termination for UnaryAssertion<T>where
T: Debug,
Available on crate feature
std only.Auto Trait Implementations§
impl<T> Freeze for UnaryAssertion<T>where
T: Freeze,
impl<T> RefUnwindSafe for UnaryAssertion<T>where
T: RefUnwindSafe,
impl<T> Send for UnaryAssertion<T>where
T: Send,
impl<T> Sync for UnaryAssertion<T>where
T: Sync,
impl<T> Unpin for UnaryAssertion<T>where
T: Unpin,
impl<T> UnsafeUnpin for UnaryAssertion<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for UnaryAssertion<T>where
T: 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