Enum erg_compiler::ty::typaram::TyParamOrdering
source · #[repr(u8)]pub enum TyParamOrdering {
Less = 0,
Equal = 1,
Greater = 2,
LessEqual = 3,
NotEqual = 4,
GreaterEqual = 5,
Any = 6,
NoRelation = 7,
}
Variants§
Implementations§
source§impl TyParamOrdering
impl TyParamOrdering
pub const fn canbe_eq(self) -> bool
pub const fn canbe_lt(self) -> bool
pub const fn canbe_gt(self) -> bool
pub const fn canbe_le(self) -> bool
pub const fn canbe_ge(self) -> bool
pub const fn canbe_ne(self) -> bool
pub const fn is_lt(&self) -> bool
pub const fn is_le(&self) -> bool
pub const fn is_gt(&self) -> bool
pub const fn is_ge(&self) -> bool
pub const fn is_eq(&self) -> bool
pub const fn is_ne(&self) -> bool
pub const fn reverse(&self) -> Self
Trait Implementations§
source§impl Clone for TyParamOrdering
impl Clone for TyParamOrdering
source§fn clone(&self) -> TyParamOrdering
fn clone(&self) -> TyParamOrdering
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TyParamOrdering
impl Debug for TyParamOrdering
source§impl From<Ordering> for TyParamOrdering
impl From<Ordering> for TyParamOrdering
source§impl Hash for TyParamOrdering
impl Hash for TyParamOrdering
source§impl PartialEq for TyParamOrdering
impl PartialEq for TyParamOrdering
source§fn eq(&self, other: &TyParamOrdering) -> bool
fn eq(&self, other: &TyParamOrdering) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<TyParamOrdering> for Ordering
impl TryFrom<TyParamOrdering> for Ordering
impl Copy for TyParamOrdering
impl Eq for TyParamOrdering
impl StructuralPartialEq for TyParamOrdering
Auto Trait Implementations§
impl Freeze for TyParamOrdering
impl RefUnwindSafe for TyParamOrdering
impl Send for TyParamOrdering
impl Sync for TyParamOrdering
impl Unpin for TyParamOrdering
impl UnwindSafe for TyParamOrdering
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