pub struct Not<E>(pub E);Expand description
A combinator expectation that inverts the wrapped expectation.
This combinator can only be used with expectations that implement the
Invertible trait (additional to the Expectation trait).
Most of the expectations provided by this crate do implement the
Invertible trait and thus can be used with the Not combinator.
Use the function not() to construct a Not combinator containing the
given expectation.
Tuple Fields§
§0: ETrait Implementations§
Source§impl<S, E> Expectation<S> for Not<E>where
E: Invertible + Expectation<S>,
impl<S, E> Expectation<S> for Not<E>where
E: Invertible + Expectation<S>,
Auto Trait Implementations§
impl<E> Freeze for Not<E>where
E: Freeze,
impl<E> RefUnwindSafe for Not<E>where
E: RefUnwindSafe,
impl<E> Send for Not<E>where
E: Send,
impl<E> Sync for Not<E>where
E: Sync,
impl<E> Unpin for Not<E>where
E: Unpin,
impl<E> UnwindSafe for Not<E>where
E: 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