Enum erg_compiler::context::TyParamIdx
source · [−]pub enum TyParamIdx {
Nth(usize),
Nested(Box<TyParamIdx>, usize),
}
Expand description
TyParamIdx::new(Add(R, O), O) => Nth(1)
TyParamIdx::new(Add(R, F(O, I)), O) => Nested(Nth(1), 0)
Variants
Nth(usize)
Nested(Box<TyParamIdx>, usize)
Implementations
Trait Implementations
sourceimpl Clone for TyParamIdx
impl Clone for TyParamIdx
sourcefn clone(&self) -> TyParamIdx
fn clone(&self) -> TyParamIdx
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TyParamIdx
impl Debug for TyParamIdx
sourceimpl Hash for TyParamIdx
impl Hash for TyParamIdx
sourceimpl PartialEq<TyParamIdx> for TyParamIdx
impl PartialEq<TyParamIdx> for TyParamIdx
sourcefn eq(&self, other: &TyParamIdx) -> bool
fn eq(&self, other: &TyParamIdx) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TyParamIdx) -> bool
fn ne(&self, other: &TyParamIdx) -> bool
This method tests for !=
.
impl Eq for TyParamIdx
impl StructuralEq for TyParamIdx
impl StructuralPartialEq for TyParamIdx
Auto Trait Implementations
impl RefUnwindSafe for TyParamIdx
impl Send for TyParamIdx
impl Sync for TyParamIdx
impl Unpin for TyParamIdx
impl UnwindSafe for TyParamIdx
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