Struct predicates::boolean::AndPredicate
source · pub struct AndPredicate<M1, M2, Item>where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,{ /* private fields */ }
Expand description
Predicate that combines two Predicate
s, returning the AND of the results.
This is created by the Predicate::and
function.
Implementations§
source§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,
sourcepub fn new(a: M1, b: M2) -> AndPredicate<M1, M2, Item>
pub fn new(a: M1, b: M2) -> AndPredicate<M1, M2, Item>
Create a new AndPredicate
over predicates a
and b
.
Trait Implementations§
source§impl<M1, M2, Item> Clone for AndPredicate<M1, M2, Item>where
M1: Predicate<Item> + Clone,
M2: Predicate<Item> + Clone,
Item: ?Sized + Clone,
impl<M1, M2, Item> Clone for AndPredicate<M1, M2, Item>where M1: Predicate<Item> + Clone, M2: Predicate<Item> + Clone, Item: ?Sized + Clone,
source§fn clone(&self) -> AndPredicate<M1, M2, Item>
fn clone(&self) -> AndPredicate<M1, M2, Item>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<M1, M2, Item> Debug for AndPredicate<M1, M2, Item>where
M1: Predicate<Item> + Debug,
M2: Predicate<Item> + Debug,
Item: ?Sized + Debug,
impl<M1, M2, Item> Debug for AndPredicate<M1, M2, Item>where M1: Predicate<Item> + Debug, M2: Predicate<Item> + Debug, Item: ?Sized + Debug,
source§impl<M1, M2, Item> Display for AndPredicate<M1, M2, Item>where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
impl<M1, M2, Item> Display for AndPredicate<M1, M2, Item>where M1: Predicate<Item>, M2: Predicate<Item>, Item: ?Sized,
source§impl<M1, M2, Item> PartialEq<AndPredicate<M1, M2, Item>> for AndPredicate<M1, M2, Item>where
M1: Predicate<Item> + PartialEq,
M2: Predicate<Item> + PartialEq,
Item: ?Sized + PartialEq,
impl<M1, M2, Item> PartialEq<AndPredicate<M1, M2, Item>> for AndPredicate<M1, M2, Item>where M1: Predicate<Item> + PartialEq, M2: Predicate<Item> + PartialEq, Item: ?Sized + PartialEq,
source§fn eq(&self, other: &AndPredicate<M1, M2, Item>) -> bool
fn eq(&self, other: &AndPredicate<M1, M2, Item>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<M1, M2, Item> Predicate<Item> for AndPredicate<M1, M2, Item>where
M1: Predicate<Item>,
M2: Predicate<Item>,
Item: ?Sized,
impl<M1, M2, Item> Predicate<Item> for AndPredicate<M1, M2, Item>where M1: Predicate<Item>, M2: Predicate<Item>, Item: ?Sized,
source§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, M2, Item> Copy for AndPredicate<M1, M2, Item>where M1: Predicate<Item> + Copy, M2: Predicate<Item> + Copy, Item: ?Sized + Copy,
impl<M1, M2, Item> Eq for AndPredicate<M1, M2, Item>where M1: Predicate<Item> + Eq, M2: Predicate<Item> + Eq, Item: ?Sized + Eq,
impl<M1, M2, Item> Send for AndPredicate<M1, M2, Item>where M1: Predicate<Item> + Send, M2: Predicate<Item> + Send, Item: ?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,
impl<M1, M2, Item> Sync for AndPredicate<M1, M2, Item>where M1: Predicate<Item> + Sync, M2: Predicate<Item> + Sync, 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> 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
impl<P, Item> PredicateBooleanExt<Item> for Pwhere P: Predicate<Item>, Item: ?Sized,
source§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 moresource§impl<P, Item> PredicateBoxExt<Item> for Pwhere
P: Predicate<Item>,
impl<P, Item> PredicateBoxExt<Item> for Pwhere P: Predicate<Item>,
source§impl<P> PredicateFileContentExt for Pwhere
P: Predicate<[u8]>,
impl<P> PredicateFileContentExt for Pwhere P: Predicate<[u8]>,
source§fn from_file_path(self) -> FileContentPredicate<Self>
fn from_file_path(self) -> FileContentPredicate<Self>
source§impl<P, Item> PredicateNameExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
impl<P, Item> PredicateNameExt<Item> for Pwhere P: Predicate<Item>, Item: ?Sized,
source§impl<P> PredicateStrExt for Pwhere
P: Predicate<str>,
impl<P> PredicateStrExt for Pwhere P: Predicate<str>,
source§fn trim(self) -> TrimPredicate<Self>
fn trim(self) -> TrimPredicate<Self>
source§fn from_utf8(self) -> Utf8Predicate<Self>
fn from_utf8(self) -> Utf8Predicate<Self>
source§fn normalize(self) -> NormalizedPredicate<Self>
fn normalize(self) -> NormalizedPredicate<Self>
Returns a
NormalizedPredicate
that ensures
the newlines within the data passed to Self
is normalised. Read more