Struct erg_parser::ast::ArrayComprehension
source · pub struct ArrayComprehension {
pub l_sqbr: Token,
pub r_sqbr: Token,
pub elem: Box<Expr>,
pub generators: Vec<(Identifier, Expr)>,
pub guards: Vec<Expr>,
}
Fields§
§l_sqbr: Token
§r_sqbr: Token
§elem: Box<Expr>
§generators: Vec<(Identifier, Expr)>
§guards: Vec<Expr>
Implementations§
Trait Implementations§
source§impl Clone for ArrayComprehension
impl Clone for ArrayComprehension
source§fn clone(&self) -> ArrayComprehension
fn clone(&self) -> ArrayComprehension
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 ArrayComprehension
impl Debug for ArrayComprehension
source§impl Display for ArrayComprehension
impl Display for ArrayComprehension
source§impl Hash for ArrayComprehension
impl Hash for ArrayComprehension
source§impl Locational for ArrayComprehension
impl Locational for ArrayComprehension
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 ArrayComprehension
impl NestedDisplay for ArrayComprehension
source§impl PartialEq<ArrayComprehension> for ArrayComprehension
impl PartialEq<ArrayComprehension> for ArrayComprehension
source§fn eq(&self, other: &ArrayComprehension) -> bool
fn eq(&self, other: &ArrayComprehension) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.