Struct predicates::boolean::AndPredicate
[−]
[src]
pub struct AndPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized, { /* fields omitted */ }Predicate that combines two Predicates, returning the AND of the results.
This is created by the Predicate::and function.
Methods
impl<M1, M2, Item> AndPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized, [src]
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
pub fn new(a: M1, b: M2) -> AndPredicate<M1, M2, Item>[src]
Create a new AndPredicate over predicates a and b.
Trait Implementations
impl<M1: Debug, M2: Debug, Item> Debug for AndPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: Debug + ?Sized, [src]
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: Debug + ?Sized,
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<M1, M2, Item> Predicate<Item> for AndPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized, [src]
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
fn eval(&self, item: &Item) -> bool[src]
Execute this Predicate against variable, returning the resulting boolean. Read more
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item> where
B: Predicate<Item>,
Self: Sized, [src]
B: Predicate<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, Item> where
B: Predicate<Item>,
Self: Sized, [src]
B: Predicate<Item>,
Self: Sized,
Compute the logical OR of two Predicate results, returning the result. Read more
fn not(self) -> NotPredicate<Self, Item> where
Self: Sized, [src]
Self: Sized,
Compute the logical NOT of a Predicate, returning the result. Read more
fn boxed(self) -> BoxPredicate<Item> where
Self: Sized + Send + Sync + 'static, [src]
Self: Sized + Send + Sync + 'static,
Returns a BoxPredicate wrapper around this Predicate type. Read more