Struct predicates::iter::OrdInPredicate
source · Expand description
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
sourceimpl<T: Clone> Clone for OrdInPredicate<T>where
T: Ord + Debug,
impl<T: Clone> Clone for OrdInPredicate<T>where
T: Ord + Debug,
sourcefn clone(&self) -> OrdInPredicate<T>
fn clone(&self) -> OrdInPredicate<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T> Display for OrdInPredicate<T>where
T: Ord + Debug,
impl<T> Display for OrdInPredicate<T>where
T: Ord + Debug,
sourceimpl<T: PartialEq> PartialEq<OrdInPredicate<T>> for OrdInPredicate<T>where
T: Ord + Debug,
impl<T: PartialEq> PartialEq<OrdInPredicate<T>> for OrdInPredicate<T>where
T: Ord + Debug,
sourcefn eq(&self, other: &OrdInPredicate<T>) -> bool
fn eq(&self, other: &OrdInPredicate<T>) -> bool
sourceimpl<T> Predicate<T> for OrdInPredicate<T>where
T: Ord + Debug,
impl<T> Predicate<T> for OrdInPredicate<T>where
T: Ord + Debug,
sourceimpl<T> PredicateReflection for OrdInPredicate<T>where
T: Ord + Debug,
impl<T> PredicateReflection for OrdInPredicate<T>where
T: Ord + Debug,
impl<T: Eq> Eq for OrdInPredicate<T>where
T: Ord + Debug,
impl<T> StructuralEq for OrdInPredicate<T>where
T: Ord + Debug,
impl<T> StructuralPartialEq for OrdInPredicate<T>where
T: Ord + Debug,
Auto Trait Implementations
impl<T> RefUnwindSafe for OrdInPredicate<T>where
T: RefUnwindSafe,
impl<T> Send for OrdInPredicate<T>where
T: Send,
impl<T> Sync for OrdInPredicate<T>where
T: Sync,
impl<T> Unpin for OrdInPredicate<T>where
T: Unpin,
impl<T> UnwindSafe for OrdInPredicate<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
impl<P, Item> PredicateBooleanExt<Item> for Pwhere
P: Predicate<Item>,
Item: ?Sized,
sourcefn 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 moresourcefn or<B>(self, other: B) -> OrPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
fn or<B>(self, other: B) -> OrPredicate<Self, B, Item>where
B: Predicate<Item>,
Self: Sized,
Compute the logical OR of two
Predicate
results, returning the result. Read moresourcefn not(self) -> NotPredicate<Self, Item>where
Self: Sized,
fn not(self) -> NotPredicate<Self, Item>where
Self: Sized,
Compute the logical NOT of a
Predicate
, returning the result. Read more