Enum erg_compiler::ty::typaram::TyParamOrdering
source · [−]#[repr(u8)]
pub enum TyParamOrdering {
Less,
Equal,
Greater,
LessEqual,
NotEqual,
GreaterEqual,
Any,
NoRelation,
}
Variants
Less
Equal
Greater
LessEqual
NotEqual
GreaterEqual
Any
NoRelation
Implementations
sourceimpl 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
sourceimpl Clone for TyParamOrdering
impl Clone for TyParamOrdering
sourcefn clone(&self) -> TyParamOrdering
fn clone(&self) -> TyParamOrdering
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TyParamOrdering
impl Debug for TyParamOrdering
sourceimpl From<Ordering> for TyParamOrdering
impl From<Ordering> for TyParamOrdering
sourceimpl Hash for TyParamOrdering
impl Hash for TyParamOrdering
sourceimpl PartialEq<TyParamOrdering> for TyParamOrdering
impl PartialEq<TyParamOrdering> for TyParamOrdering
sourcefn eq(&self, other: &TyParamOrdering) -> bool
fn eq(&self, other: &TyParamOrdering) -> bool
sourceimpl TryFrom<TyParamOrdering> for Ordering
impl TryFrom<TyParamOrdering> for Ordering
impl Copy for TyParamOrdering
impl Eq for TyParamOrdering
impl StructuralEq for TyParamOrdering
impl StructuralPartialEq for TyParamOrdering
Auto Trait Implementations
impl RefUnwindSafe for TyParamOrdering
impl Send for TyParamOrdering
impl Sync for TyParamOrdering
impl Unpin for TyParamOrdering
impl UnwindSafe for TyParamOrdering
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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