Struct predicates::predicate::EqPredicate
[−]
[src]
pub struct EqPredicate<T> { /* fields omitted */ }
Predicate that returns true
if variable
matches the pre-defined Eq
value, otherwise returns false
.
This is created by the predicate::{eq, ne}
functions.
Trait Implementations
impl<T: Debug> Debug for EqPredicate<T>
[src]
impl<T> Predicate for EqPredicate<T> where
T: PartialEq,
[src]
T: PartialEq,
type Item = T
The type that this Predicate
will accept for evaluating.
fn eval(&self, variable: &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