Struct predicates::boolean::NotPredicate
source · pub struct NotPredicate<M, Item>where
M: Predicate<Item>,
Item: ?Sized,{ /* private fields */ }
Expand description
Predicate that returns a Predicate
taking the logical NOT of the result.
This is created by the Predicate::not
function.
Implementations§
source§impl<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§
source§impl<M, Item> Clone for NotPredicate<M, Item>where
M: Predicate<Item> + Clone,
Item: ?Sized + Clone,
impl<M, Item> Clone for NotPredicate<M, Item>where M: Predicate<Item> + Clone, Item: ?Sized + Clone,
source§fn clone(&self) -> NotPredicate<M, Item>
fn clone(&self) -> NotPredicate<M, Item>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<M, Item> Debug for NotPredicate<M, Item>where
M: Predicate<Item> + Debug,
Item: ?Sized + Debug,
impl<M, Item> Debug for NotPredicate<M, Item>where M: Predicate<Item> + Debug, Item: ?Sized + Debug,
source§impl<M, Item> PartialEq<NotPredicate<M, Item>> for NotPredicate<M, Item>where
M: Predicate<Item> + PartialEq,
Item: ?Sized + PartialEq,
impl<M, Item> PartialEq<NotPredicate<M, Item>> for NotPredicate<M, Item>where M: Predicate<Item> + PartialEq, Item: ?Sized + PartialEq,
source§fn eq(&self, other: &NotPredicate<M, Item>) -> bool
fn eq(&self, other: &NotPredicate<M, Item>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<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,
source§impl<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, Item> Copy for NotPredicate<M, Item>where M: Predicate<Item> + Copy, Item: ?Sized + Copy,
impl<M, Item> Eq for NotPredicate<M, Item>where M: Predicate<Item> + Eq, Item: ?Sized + Eq,
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§
source§impl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
impl<P, Item> PredicateBooleanExt<Item> for Pwhere P: Predicate<Item>, Item: ?Sized,
source§fn 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 more