Struct erg_compiler::hir::NormalArray
source · pub struct NormalArray {
pub l_sqbr: Token,
pub r_sqbr: Token,
pub t: Type,
pub elems: Args,
}
Fields§
§l_sqbr: Token
§r_sqbr: Token
§t: Type
§elems: Args
Implementations§
Trait Implementations§
source§impl Clone for NormalArray
impl Clone for NormalArray
source§fn clone(&self) -> NormalArray
fn clone(&self) -> NormalArray
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 NormalArray
impl Debug for NormalArray
source§impl Display for NormalArray
impl Display for NormalArray
source§impl HasType for NormalArray
impl HasType for NormalArray
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 Hash for NormalArray
impl Hash for NormalArray
source§impl Locational for NormalArray
impl Locational for NormalArray
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 NormalArray
impl NestedDisplay for NormalArray
source§impl NoTypeDisplay for NormalArray
impl NoTypeDisplay for NormalArray
fn to_string_notype(&self) -> String
source§impl PartialEq<NormalArray> for NormalArray
impl PartialEq<NormalArray> for NormalArray
source§fn eq(&self, other: &NormalArray) -> bool
fn eq(&self, other: &NormalArray) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.