pub enum ComparisonOp {
Equal,
NotEqual,
LessThan,
LessThanOrEqual,
GreaterThan,
GreaterThanOrEqual,
}Expand description
Comparison operator used by binary predicates.
Variants§
Equal
Equals (=).
NotEqual
Not equals (!=).
LessThan
Less than (<).
LessThanOrEqual
Less than or equal to (<=).
GreaterThan
Greater than (>).
GreaterThanOrEqual
Greater than or equal to (>=).
Implementations§
Source§impl ComparisonOp
impl ComparisonOp
Trait Implementations§
Source§impl Clone for ComparisonOp
impl Clone for ComparisonOp
Source§fn clone(&self) -> ComparisonOp
fn clone(&self) -> ComparisonOp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ComparisonOp
Source§impl Debug for ComparisonOp
impl Debug for ComparisonOp
Source§impl Display for ComparisonOp
impl Display for ComparisonOp
impl Eq for ComparisonOp
Source§impl Hash for ComparisonOp
impl Hash for ComparisonOp
Source§impl PartialEq for ComparisonOp
impl PartialEq for ComparisonOp
Source§fn eq(&self, other: &ComparisonOp) -> bool
fn eq(&self, other: &ComparisonOp) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComparisonOp
Auto Trait Implementations§
impl Freeze for ComparisonOp
impl RefUnwindSafe for ComparisonOp
impl Send for ComparisonOp
impl Sync for ComparisonOp
impl Unpin for ComparisonOp
impl UnsafeUnpin for ComparisonOp
impl UnwindSafe for ComparisonOp
Blanket Implementations§
impl<T> Allocation for T
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