Struct predicates::ord::EqPredicate
source · pub struct EqPredicate<T> { /* private fields */ }
Expand description
Predicate that returns true
if variable
matches the pre-defined Eq
value, otherwise returns false
.
This is created by the predicate::{eq, ne}
functions.
Trait Implementations§
source§impl<T: Clone> Clone for EqPredicate<T>
impl<T: Clone> Clone for EqPredicate<T>
source§fn clone(&self) -> EqPredicate<T>
fn clone(&self) -> EqPredicate<T>
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<T: Debug> Debug for EqPredicate<T>
impl<T: Debug> Debug for EqPredicate<T>
source§impl<T> Display for EqPredicate<T>where
T: Debug,
impl<T> Display for EqPredicate<T>where
T: Debug,
source§impl<T: PartialEq> PartialEq<EqPredicate<T>> for EqPredicate<T>
impl<T: PartialEq> PartialEq<EqPredicate<T>> for EqPredicate<T>
source§fn eq(&self, other: &EqPredicate<T>) -> bool
fn eq(&self, other: &EqPredicate<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<P, T> Predicate<P> for EqPredicate<T>where
T: Borrow<P> + Debug,
P: Debug + PartialEq + ?Sized,
impl<P, T> Predicate<P> for EqPredicate<T>where
T: Borrow<P> + Debug,
P: Debug + PartialEq + ?Sized,
source§impl<T> PredicateReflection for EqPredicate<T>where
T: Debug,
impl<T> PredicateReflection for EqPredicate<T>where
T: Debug,
impl<T: Copy> Copy for EqPredicate<T>
impl<T: Eq> Eq for EqPredicate<T>
impl<T> StructuralEq for EqPredicate<T>
impl<T> StructuralPartialEq for EqPredicate<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for EqPredicate<T>where
T: RefUnwindSafe,
impl<T> Send for EqPredicate<T>where
T: Send,
impl<T> Sync for EqPredicate<T>where
T: Sync,
impl<T> Unpin for EqPredicate<T>where
T: Unpin,
impl<T> UnwindSafe for EqPredicate<T>where
T: UnwindSafe,
Blanket Implementations§
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 more