Struct predicates::iter::OrdInPredicate [−][src]
Predicate that returns true
if variable
is a member of the pre-defined
set, otherwise returns false
.
Note that this implementation requires Item
to be Ord
. The
InPredicate
uses a less efficient search algorithm but only
requires Item
implement PartialEq
. The implementation-specific
predicates will be deprecated when Rust supports trait specialization.
This is created by the predicate::in_iter(...).sort
function.
Trait Implementations
impl<T: Debug> Debug for OrdInPredicate<T> where
T: Ord + Debug,
[src]
impl<T: Debug> Debug for OrdInPredicate<T> where
T: Ord + Debug,
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<T: Clone> Clone for OrdInPredicate<T> where
T: Ord + Debug,
[src]
impl<T: Clone> Clone for OrdInPredicate<T> where
T: Ord + Debug,
fn clone(&self) -> OrdInPredicate<T>
[src]
fn clone(&self) -> OrdInPredicate<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<T: PartialEq> PartialEq for OrdInPredicate<T> where
T: Ord + Debug,
[src]
impl<T: PartialEq> PartialEq for OrdInPredicate<T> where
T: Ord + Debug,
fn eq(&self, other: &OrdInPredicate<T>) -> bool
[src]
fn eq(&self, other: &OrdInPredicate<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &OrdInPredicate<T>) -> bool
[src]
fn ne(&self, other: &OrdInPredicate<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for OrdInPredicate<T> where
T: Ord + Debug,
[src]
impl<T: Eq> Eq for OrdInPredicate<T> where
T: Ord + Debug,
impl<T> Predicate<T> for OrdInPredicate<T> where
T: Ord + Debug,
[src]
impl<T> Predicate<T> for OrdInPredicate<T> where
T: Ord + Debug,
fn eval(&self, variable: &T) -> bool
[src]
fn eval(&self, variable: &T) -> bool
Execute this Predicate
against variable
, returning the resulting boolean. Read more
impl<'a, T: ?Sized> Predicate<T> for OrdInPredicate<&'a T> where
T: Ord + Debug,
[src]
impl<'a, T: ?Sized> Predicate<T> for OrdInPredicate<&'a T> where
T: Ord + Debug,
fn eval(&self, variable: &T) -> bool
[src]
fn eval(&self, variable: &T) -> bool
Execute this Predicate
against variable
, returning the resulting boolean. Read more
impl<T> Display for OrdInPredicate<T> where
T: Ord + Debug,
[src]
impl<T> Display for OrdInPredicate<T> where
T: Ord + Debug,
Auto Trait Implementations
impl<T> Send for OrdInPredicate<T> where
T: Send,
impl<T> Send for OrdInPredicate<T> where
T: Send,
impl<T> Sync for OrdInPredicate<T> where
T: Sync,
impl<T> Sync for OrdInPredicate<T> where
T: Sync,