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