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