Struct predicates::boolean::NotPredicate
source · Expand description
Predicate that returns a Predicate
taking the logical NOT of the result.
This is created by the Predicate::not
function.
Implementations
sourceimpl<M, Item> NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,
impl<M, Item> NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,
sourcepub fn new(inner: M) -> NotPredicate<M, Item>
pub fn new(inner: M) -> NotPredicate<M, Item>
Create a new NotPredicate
over predicate inner
.
Trait Implementations
sourceimpl<M: Clone, Item: Clone> Clone for NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,
impl<M: Clone, Item: Clone> Clone for NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,
sourcefn clone(&self) -> NotPredicate<M, Item>
fn clone(&self) -> NotPredicate<M, Item>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<M: Debug, Item: Debug> Debug for NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,
impl<M: Debug, Item: Debug> Debug for NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,
sourceimpl<M, Item> Display for NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,
impl<M, Item> Display for NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,
sourceimpl<M: PartialEq, Item: PartialEq> PartialEq<NotPredicate<M, Item>> for NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,
impl<M: PartialEq, Item: PartialEq> PartialEq<NotPredicate<M, Item>> for NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,
sourcefn eq(&self, other: &NotPredicate<M, Item>) -> bool
fn eq(&self, other: &NotPredicate<M, Item>) -> bool
sourceimpl<M, Item> Predicate<Item> for NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,
impl<M, Item> Predicate<Item> for NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,
sourceimpl<M, Item> PredicateReflection for NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,
impl<M, Item> PredicateReflection for NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,
impl<M: Copy, Item: Copy> Copy for NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,
impl<M: Eq, Item: Eq> Eq for NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,
impl<M, Item> Send for NotPredicate<M, Item>where
M: Predicate<Item> + Send,
Item: ?Sized,
impl<M, Item> StructuralEq for NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,
impl<M, Item> StructuralPartialEq for NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,
impl<M, Item> Sync for NotPredicate<M, Item>where
M: Predicate<Item> + Sync,
Item: ?Sized,
Auto Trait Implementations
impl<M, Item: ?Sized> RefUnwindSafe for NotPredicate<M, Item>where
Item: RefUnwindSafe,
M: RefUnwindSafe,
impl<M, Item: ?Sized> Unpin for NotPredicate<M, Item>where
Item: Unpin,
M: Unpin,
impl<M, Item: ?Sized> UnwindSafe for NotPredicate<M, Item>where
Item: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
impl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
sourcefn and<B>(self, other: B) -> AndPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
Compute the logical AND of two
Predicate
results, returning the result. Read moresourcefn or<B>(self, other: B) -> OrPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
fn or<B>(self, other: B) -> OrPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
Compute the logical OR of two
Predicate
results, returning the result. Read moresourcefn not(self) -> NotPredicate<Self, Item>where
Self: Sized,
fn not(self) -> NotPredicate<Self, Item>where
Self: Sized,
Compute the logical NOT of a
Predicate
, returning the result. Read more