Struct erg_parser::ast::ArrayTypeSpec
source · pub struct ArrayTypeSpec {
pub ty: Box<TypeSpec>,
pub len: ConstExpr,
}
Fields§
§ty: Box<TypeSpec>
§len: ConstExpr
Implementations§
Trait Implementations§
source§impl Clone for ArrayTypeSpec
impl Clone for ArrayTypeSpec
source§fn clone(&self) -> ArrayTypeSpec
fn clone(&self) -> ArrayTypeSpec
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 ArrayTypeSpec
impl Debug for ArrayTypeSpec
source§impl Display for ArrayTypeSpec
impl Display for ArrayTypeSpec
source§impl Hash for ArrayTypeSpec
impl Hash for ArrayTypeSpec
source§impl Locational for ArrayTypeSpec
impl Locational for ArrayTypeSpec
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 PartialEq<ArrayTypeSpec> for ArrayTypeSpec
impl PartialEq<ArrayTypeSpec> for ArrayTypeSpec
source§fn eq(&self, other: &ArrayTypeSpec) -> bool
fn eq(&self, other: &ArrayTypeSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.