Struct predicates::boolean::OrPredicate [−][src]
pub struct OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized, { /* fields omitted */ }
Predicate that combines two Predicate
s, returning the OR of the results.
This is created by the Predicate::or
function.
Methods
impl<M1, M2, Item> OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
[src]
impl<M1, M2, Item> OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
pub fn new(a: M1, b: M2) -> OrPredicate<M1, M2, Item>
[src]
pub fn new(a: M1, b: M2) -> OrPredicate<M1, M2, Item>
Create a new OrPredicate
over predicates a
and b
.
Trait Implementations
impl<M1: Debug, M2: Debug, Item> Debug for OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: Debug + ?Sized,
[src]
impl<M1: Debug, M2: Debug, Item> Debug for OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: Debug + ?Sized,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<M1, M2, Item> Predicate<Item> for OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
[src]
impl<M1, M2, Item> Predicate<Item> for OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
fn eval(&self, item: &Item) -> bool
[src]
fn eval(&self, item: &Item) -> bool
Execute this Predicate
against variable
, returning the resulting boolean. Read more
impl<M1, M2, Item> Display for OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
[src]
impl<M1, M2, Item> Display for OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,