Enum erg_compiler::hir::Tuple
source · pub enum Tuple {
Normal(NormalTuple),
}
Variants§
Normal(NormalTuple)
Trait Implementations§
source§impl HasType for Tuple
impl HasType for Tuple
fn ref_t(&self) -> &Type
source§fn ref_mut_t(&mut self) -> &mut Type
fn ref_mut_t(&mut self) -> &mut Type
x.ref_mut_t()
may panic, in which case x
is Call
and x.ref_t() == Type::Failure
.fn signature_t(&self) -> Option<&Type>
fn signature_mut_t(&mut self) -> Option<&mut Type>
fn t(&self) -> Type
fn inner_ts(&self) -> Vec<Type>
fn lhs_t(&self) -> &Type
fn rhs_t(&self) -> &Type
source§impl Locational for Tuple
impl Locational for Tuple
source§fn loc(&self) -> Location
fn loc(&self) -> Location
NOTE:
loc
cannot be treated as a light method when self
is a large grammatical element.
If possible, delay the computation by passing &impl Locational
or other means.fn ln_begin(&self) -> Option<u32>
fn ln_end(&self) -> Option<u32>
fn col_begin(&self) -> Option<u32>
fn col_end(&self) -> Option<u32>
source§impl NestedDisplay for Tuple
impl NestedDisplay for Tuple
source§impl NoTypeDisplay for Tuple
impl NoTypeDisplay for Tuple
fn to_string_notype(&self) -> String
source§impl PartialEq<Tuple> for Tuple
impl PartialEq<Tuple> for Tuple
impl Eq for Tuple
impl StructuralEq for Tuple
impl StructuralPartialEq for Tuple
Auto Trait Implementations§
impl !RefUnwindSafe for Tuple
impl !Send for Tuple
impl !Sync for Tuple
impl Unpin for Tuple
impl !UnwindSafe for Tuple
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