Enum erg_parser::ast::RecordAttrOrIdent
source · pub enum RecordAttrOrIdent {
Attr(Def),
Ident(Identifier),
}
Variants§
Attr(Def)
Ident(Identifier)
Trait Implementations§
source§impl Clone for RecordAttrOrIdent
impl Clone for RecordAttrOrIdent
source§fn clone(&self) -> RecordAttrOrIdent
fn clone(&self) -> RecordAttrOrIdent
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 RecordAttrOrIdent
impl Debug for RecordAttrOrIdent
source§impl Display for RecordAttrOrIdent
impl Display for RecordAttrOrIdent
source§impl Hash for RecordAttrOrIdent
impl Hash for RecordAttrOrIdent
source§impl Locational for RecordAttrOrIdent
impl Locational for RecordAttrOrIdent
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 RecordAttrOrIdent
impl NestedDisplay for RecordAttrOrIdent
source§impl PartialEq<RecordAttrOrIdent> for RecordAttrOrIdent
impl PartialEq<RecordAttrOrIdent> for RecordAttrOrIdent
source§fn eq(&self, other: &RecordAttrOrIdent) -> bool
fn eq(&self, other: &RecordAttrOrIdent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.