Struct predicates::boolean::OrPredicate [−][src]
pub struct OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized, { /* fields omitted */ }
Expand description
Predicate that combines two Predicate
s, returning the OR of the results.
This is created by the Predicate::or
function.
Implementations
impl<M1, M2, Item> OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
impl<M1, M2, Item> OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
Create a new OrPredicate
over predicates a
and b
.
Trait Implementations
impl<M1: PartialEq, M2: PartialEq, Item: PartialEq> PartialEq<OrPredicate<M1, M2, Item>> for OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
impl<M1: PartialEq, M2: PartialEq, Item: PartialEq> PartialEq<OrPredicate<M1, M2, Item>> for OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<M1, M2, Item> PredicateReflection for OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
impl<M1, M2, Item> PredicateReflection for OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
impl<M1: Copy, M2: Copy, Item: Copy> Copy for OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
impl<M1: Eq, M2: Eq, Item: Eq> Eq for OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
impl<M1, M2, Item> Send for OrPredicate<M1, M2, Item> where
M1: Predicate<Item> + Send,
M2: Predicate<Item> + Send,
Item: ?Sized,
impl<M1, M2, Item> StructuralEq for OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
impl<M1, M2, Item> StructuralPartialEq for OrPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
Auto Trait Implementations
impl<M1, M2, Item: ?Sized> RefUnwindSafe for OrPredicate<M1, M2, Item> where
Item: RefUnwindSafe,
M1: RefUnwindSafe,
M2: RefUnwindSafe,
impl<M1, M2, Item: ?Sized> Unpin for OrPredicate<M1, M2, Item> where
Item: Unpin,
M1: Unpin,
M2: Unpin,
impl<M1, M2, Item: ?Sized> UnwindSafe for OrPredicate<M1, M2, Item> where
Item: UnwindSafe,
M1: UnwindSafe,
M2: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item> where
B: Predicate<Item>,
Self: Sized,
fn and<B>(self, other: B) -> AndPredicate<Self, B, Item> where
B: Predicate<Item>,
Self: Sized,
Compute the logical AND of two Predicate
results, returning the result. Read more
Compute the logical OR of two Predicate
results, returning the result. Read more
Compute the logical NOT of a Predicate
, returning the result. Read more