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