#[repr(transparent)]pub struct CompareOp(_);Expand description
Implementations
sourceimpl CompareOp
impl CompareOp
pub const NEVER: CompareOp = Self(0)
pub const LESS: CompareOp = Self(1)
pub const EQUAL: CompareOp = Self(2)
pub const LESS_OR_EQUAL: CompareOp = Self(3)
pub const GREATER: CompareOp = Self(4)
pub const NOT_EQUAL: CompareOp = Self(5)
pub const GREATER_OR_EQUAL: CompareOp = Self(6)
pub const ALWAYS: CompareOp = Self(7)
Trait Implementations
sourceimpl Ord for CompareOp
impl Ord for CompareOp
sourceimpl PartialOrd<CompareOp> for CompareOp
impl PartialOrd<CompareOp> for CompareOp
sourcefn partial_cmp(&self, other: &CompareOp) -> Option<Ordering>
fn partial_cmp(&self, other: &CompareOp) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for CompareOp
impl Eq for CompareOp
impl StructuralEq for CompareOp
impl StructuralPartialEq for CompareOp
Auto Trait Implementations
impl RefUnwindSafe for CompareOp
impl Send for CompareOp
impl Sync for CompareOp
impl Unpin for CompareOp
impl UnwindSafe for CompareOp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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