Struct erg_parser::ast::NormalRecord
source · pub struct NormalRecord {
pub l_brace: Token,
pub r_brace: Token,
pub attrs: RecordAttrs,
}
Fields§
§l_brace: Token
§r_brace: Token
§attrs: RecordAttrs
Implementations§
source§impl NormalRecord
impl NormalRecord
pub const fn new(l_brace: Token, r_brace: Token, attrs: RecordAttrs) -> Self
Trait Implementations§
source§impl Clone for NormalRecord
impl Clone for NormalRecord
source§fn clone(&self) -> NormalRecord
fn clone(&self) -> NormalRecord
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 NormalRecord
impl Debug for NormalRecord
source§impl Display for NormalRecord
impl Display for NormalRecord
source§impl From<NormalRecord> for Expr
impl From<NormalRecord> for Expr
source§fn from(record: NormalRecord) -> Self
fn from(record: NormalRecord) -> Self
Converts to this type from the input type.
source§impl Hash for NormalRecord
impl Hash for NormalRecord
source§impl Locational for NormalRecord
impl Locational for NormalRecord
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 NormalRecord
impl NestedDisplay for NormalRecord
source§impl PartialEq<NormalRecord> for NormalRecord
impl PartialEq<NormalRecord> for NormalRecord
source§fn eq(&self, other: &NormalRecord) -> bool
fn eq(&self, other: &NormalRecord) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.