#[non_exhaustive]#[repr(u32)]pub enum ComparisonOperation {
Less = 0,
LessEqual = 1,
Equal = 2,
GreaterEqual = 3,
Greater = 4,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for ComparisonOperation
impl Clone for ComparisonOperation
Source§fn clone(&self) -> ComparisonOperation
fn clone(&self) -> ComparisonOperation
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 ComparisonOperation
Source§impl Debug for ComparisonOperation
impl Debug for ComparisonOperation
Source§impl Display for ComparisonOperation
impl Display for ComparisonOperation
impl Eq for ComparisonOperation
Source§impl From<ComparisonOperation> for u32
impl From<ComparisonOperation> for u32
Source§fn from(enum_value: ComparisonOperation) -> Self
fn from(enum_value: ComparisonOperation) -> Self
Converts to this type from the input type.
Source§impl From<ComparisonOperation> for NppCmpOp
impl From<ComparisonOperation> for NppCmpOp
Source§fn from(value: ComparisonOperation) -> Self
fn from(value: ComparisonOperation) -> Self
Converts to this type from the input type.
Source§impl From<NppCmpOp> for ComparisonOperation
impl From<NppCmpOp> for ComparisonOperation
Source§impl Hash for ComparisonOperation
impl Hash for ComparisonOperation
Source§impl PartialEq for ComparisonOperation
impl PartialEq for ComparisonOperation
Source§fn eq(&self, other: &ComparisonOperation) -> bool
fn eq(&self, other: &ComparisonOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComparisonOperation
Source§impl TryFrom<u32> for ComparisonOperation
impl TryFrom<u32> for ComparisonOperation
Source§type Error = TryFromPrimitiveError<ComparisonOperation>
type Error = TryFromPrimitiveError<ComparisonOperation>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ComparisonOperation
impl TryFromPrimitive for ComparisonOperation
const NAME: &'static str = "ComparisonOperation"
type Primitive = u32
type Error = TryFromPrimitiveError<ComparisonOperation>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ComparisonOperation
impl RefUnwindSafe for ComparisonOperation
impl Send for ComparisonOperation
impl Sync for ComparisonOperation
impl Unpin for ComparisonOperation
impl UnsafeUnpin for ComparisonOperation
impl UnwindSafe for ComparisonOperation
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