pub enum ComparisonOperator {
Less,
LessOrEqual,
Equal,
NotEqual,
Greater,
GreaterOrEqual,
}Expand description
COMPARE_OP arg is (cmp_index << 5) | mask. Only the upper
3 bits identify the comparison; the lower 5 bits are an inline
cache mask for adaptive specialization.
Variants§
Trait Implementations§
Source§impl Clone for ComparisonOperator
impl Clone for ComparisonOperator
Source§fn clone(&self) -> ComparisonOperator
fn clone(&self) -> ComparisonOperator
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 ComparisonOperator
Source§impl Debug for ComparisonOperator
impl Debug for ComparisonOperator
impl Eq for ComparisonOperator
Source§impl From<ComparisonOperator> for PyComparisonOp
impl From<ComparisonOperator> for PyComparisonOp
Source§fn from(op: ComparisonOperator) -> Self
fn from(op: ComparisonOperator) -> Self
Converts to this type from the input type.
impl OpArgType for ComparisonOperator
Source§impl PartialEq for ComparisonOperator
impl PartialEq for ComparisonOperator
Source§fn eq(&self, other: &ComparisonOperator) -> bool
fn eq(&self, other: &ComparisonOperator) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComparisonOperator
Source§impl TryFrom<u8> for ComparisonOperator
impl TryFrom<u8> for ComparisonOperator
Source§type Error = MarshalError
type Error = MarshalError
The type returned in the event of a conversion error.
Source§fn try_from(
value: u8,
) -> Result<ComparisonOperator, <ComparisonOperator as TryFrom<u8>>::Error>
fn try_from( value: u8, ) -> Result<ComparisonOperator, <ComparisonOperator as TryFrom<u8>>::Error>
Performs the conversion.
Source§impl TryFrom<u32> for ComparisonOperator
impl TryFrom<u32> for ComparisonOperator
Source§fn try_from(
value: u32,
) -> Result<ComparisonOperator, <ComparisonOperator as TryFrom<u32>>::Error>
fn try_from( value: u32, ) -> Result<ComparisonOperator, <ComparisonOperator as TryFrom<u32>>::Error>
Decode from COMPARE_OP arg: (cmp_index << 5) | mask.
Source§type Error = MarshalError
type Error = MarshalError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ComparisonOperator
impl RefUnwindSafe for ComparisonOperator
impl Send for ComparisonOperator
impl Sync for ComparisonOperator
impl Unpin for ComparisonOperator
impl UnsafeUnpin for ComparisonOperator
impl UnwindSafe for ComparisonOperator
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more