Struct predicates::boolean::AndPredicate [−][src]
pub struct AndPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized, { /* fields omitted */ }
Expand description
Predicate that combines two Predicate
s, returning the AND of the results.
This is created by the Predicate::and
function.
Implementations
impl<M1, M2, Item> AndPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
impl<M1, M2, Item> AndPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
Create a new AndPredicate
over predicates a
and b
.
Trait Implementations
impl<M1: PartialEq, M2: PartialEq, Item> PartialEq<AndPredicate<M1, M2, Item>> for AndPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: PartialEq + ?Sized,
impl<M1: PartialEq, M2: PartialEq, Item> PartialEq<AndPredicate<M1, M2, Item>> for AndPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: PartialEq + ?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 AndPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
impl<M1, M2, Item> PredicateReflection for AndPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
impl<M1: Copy, M2: Copy, Item> Copy for AndPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: Copy + ?Sized,
impl<M1: Eq, M2: Eq, Item> Eq for AndPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: Eq + ?Sized,
impl<M1, M2, Item> StructuralEq for AndPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
impl<M1, M2, Item> StructuralPartialEq for AndPredicate<M1, M2, Item> where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
Auto Trait Implementations
impl<M1, M2, Item: ?Sized> RefUnwindSafe for AndPredicate<M1, M2, Item> where
Item: RefUnwindSafe,
M1: RefUnwindSafe,
M2: RefUnwindSafe,
impl<M1, M2, Item: ?Sized> Send for AndPredicate<M1, M2, Item> where
Item: Send,
M1: Send,
M2: Send,
impl<M1, M2, Item: ?Sized> Sync for AndPredicate<M1, M2, Item> where
Item: Sync,
M1: Sync,
M2: Sync,
impl<M1, M2, Item: ?Sized> Unpin for AndPredicate<M1, M2, Item> where
Item: Unpin,
M1: Unpin,
M2: Unpin,
impl<M1, M2, Item: ?Sized> UnwindSafe for AndPredicate<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