Struct predicates::predicate::NotPredicate
[−]
[src]
pub struct NotPredicate<M> where
M: Predicate, { /* fields omitted */ }
Predicate that returns a Predicate
taking the logical NOT of the result.
This is created by the Predicate::not
function.
Methods
impl<M> NotPredicate<M> where
M: Predicate,
[src]
M: Predicate,
fn new(inner: M) -> NotPredicate<M>
Create a new NotPredicate
over predicate inner
.
Trait Implementations
impl<M: Debug> Debug for NotPredicate<M> where
M: Predicate,
[src]
M: Predicate,
impl<M> Predicate for NotPredicate<M> where
M: Predicate,
[src]
M: Predicate,
type Item = M::Item
The type that this Predicate
will accept for evaluating.
fn eval(&self, item: &Self::Item) -> bool
Execute this Predicate
against variable
, returning the resulting boolean. Read more
fn and<B>(self, other: B) -> AndPredicate<Self, B> where
B: Predicate<Item = Self::Item>,
Self: Sized,
B: Predicate<Item = Self::Item>,
Self: Sized,
Compute the logical AND of two Predicate
results, returning the result. Read more
fn or<B>(self, other: B) -> OrPredicate<Self, B> where
B: Predicate<Item = Self::Item>,
Self: Sized,
B: Predicate<Item = Self::Item>,
Self: Sized,
Compute the logical OR of two Predicate
results, returning the result. Read more
fn not(self) -> NotPredicate<Self> where
Self: Sized,
Self: Sized,
Compute the logical NOT of a Predicate
, returning the result. Read more
fn boxed(self) -> BoxPredicate<Self::Item> where
Self: Sized + Send + Sync + 'static,
Self: Sized + Send + Sync + 'static,
Returns a BoxPredicate
wrapper around this Predicate
type. Read more