Struct erg_parser::ast::NormalDict
source · pub struct NormalDict {
pub l_brace: Token,
pub r_brace: Token,
pub kvs: Vec<KeyValue>,
}
Fields§
§l_brace: Token
§r_brace: Token
§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 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 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 ==
.