Struct erg_parser::ast::NormalArray
source · pub struct NormalArray {
pub l_sqbr: Token,
pub r_sqbr: Token,
pub elems: Args,
}
Fields§
§l_sqbr: Token
§r_sqbr: Token
§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 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 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 ==
.