pub enum CmpOp {
Lt,
Le,
Gt,
Ge,
Eq,
Ne,
}Variants§
Implementations§
Source§impl CmpOp
impl CmpOp
pub const ALL: [CmpOp; 6]
pub fn code(self) -> u8
pub fn from_code(code: u8) -> Option<CmpOp>
pub fn symbol(self) -> &'static str
pub fn is_ordering(self) -> bool
pub fn eval_rel(self, rel: Rel) -> bool
Sourcepub fn eval_d(self, d: i128) -> bool
pub fn eval_d(self, d: i128) -> bool
The operator applied to integer operands whose difference is d.
Sourcepub fn mistaken_for(self) -> &'static [CmpOp]
pub fn mistaken_for(self) -> &'static [CmpOp]
< and > as each other and as ==.
pub fn negated(self) -> CmpOp
Trait Implementations§
impl Copy for CmpOp
impl Eq for CmpOp
impl StructuralPartialEq for CmpOp
Auto Trait Implementations§
impl Forget for CmpOp
impl Freeze for CmpOp
impl Move for CmpOp
impl RefUnwindSafe for CmpOp
impl Send for CmpOp
impl Sync for CmpOp
impl Unpin for CmpOp
impl UnsafeUnpin for CmpOp
impl UnwindSafe for CmpOp
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.