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 Predicate
s, 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
impl<M1, M2, Item> Display for AndPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
[src]
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,