pub struct Not<P: ?Sized> { /* private fields */ }
Expand description
Represents predicates that are satisfied when P
is not satisfied.
Trait Implementations§
Source§impl<T: ?Sized, P: Predicate<T> + ?Sized> Predicate<T> for Not<P>
impl<T: ?Sized, P: Predicate<T> + ?Sized> Predicate<T> for Not<P>
Source§fn check(value: &T) -> Result<(), Self::Error>
fn check(value: &T) -> Result<(), Self::Error>
Checks if the value of type
T
satisfies the predicate. Read moreSource§fn expect(formatter: &mut Formatter<'_>) -> Result
fn expect(formatter: &mut Formatter<'_>) -> Result
Formats the expectation of the predicate. Read more
Source§fn expect_code(formatter: &mut Formatter<'_>) -> Result
fn expect_code(formatter: &mut Formatter<'_>) -> Result
Formats the expectation code of the predicate. Read more
Source§fn is_satisfied(value: &T) -> bool
fn is_satisfied(value: &T) -> bool
Checks whether the given value satisfies the predicate. Read more
Source§fn expected_code() -> ExpectedCode<T, Self>
fn expected_code() -> ExpectedCode<T, Self>
Returns the expectation code of the predicate.
Auto Trait Implementations§
impl<P> Freeze for Not<P>where
P: ?Sized,
impl<P> RefUnwindSafe for Not<P>where
P: RefUnwindSafe + ?Sized,
impl<P> Send for Not<P>
impl<P> Sync for Not<P>
impl<P> Unpin for Not<P>
impl<P> UnwindSafe for Not<P>where
P: UnwindSafe + ?Sized,
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