Enum erg_compiler::ty::typaram::TyParamOrdering
source · #[repr(u8)]
pub enum TyParamOrdering {
Less,
Equal,
Greater,
LessEqual,
NotEqual,
GreaterEqual,
Any,
NoRelation,
}
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<TyParamOrdering> for TyParamOrdering
impl PartialEq<TyParamOrdering> 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 ==
.