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<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
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 moresource§impl<P, Item> PredicateBoxExt<Item> for Pwhere
P: Predicate<Item>,
impl<P, Item> PredicateBoxExt<Item> for Pwhere P: Predicate<Item>,
source§impl<P> PredicateFileContentExt for Pwhere
P: Predicate<[u8]>,
impl<P> PredicateFileContentExt for Pwhere P: Predicate<[u8]>,
source§fn from_file_path(self) -> FileContentPredicate<Self>
fn from_file_path(self) -> FileContentPredicate<Self>
source§impl<P, Item> PredicateNameExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
impl<P, Item> PredicateNameExt<Item> for Pwhere P: Predicate<Item>, Item: ?Sized,
source§impl<P> PredicateStrExt for Pwhere
P: Predicate<str>,
impl<P> PredicateStrExt for Pwhere P: Predicate<str>,
source§fn trim(self) -> TrimPredicate<Self>
fn trim(self) -> TrimPredicate<Self>
source§fn from_utf8(self) -> Utf8Predicate<Self>
fn from_utf8(self) -> Utf8Predicate<Self>
source§fn normalize(self) -> NormalizedPredicate<Self>
fn normalize(self) -> NormalizedPredicate<Self>
Returns a
NormalizedPredicate
that ensures
the newlines within the data passed to Self
is normalised. Read more