Struct erg_parser::ast::ConstAttribute
source · pub struct ConstAttribute {
pub obj: Box<ConstExpr>,
pub name: ConstIdentifier,
}
Fields§
§obj: Box<ConstExpr>
§name: ConstIdentifier
Implementations§
Trait Implementations§
source§impl Clone for ConstAttribute
impl Clone for ConstAttribute
source§fn clone(&self) -> ConstAttribute
fn clone(&self) -> ConstAttribute
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 ConstAttribute
impl Debug for ConstAttribute
source§impl Display for ConstAttribute
impl Display for ConstAttribute
source§impl Hash for ConstAttribute
impl Hash for ConstAttribute
source§impl Locational for ConstAttribute
impl Locational for ConstAttribute
source§impl NestedDisplay for ConstAttribute
impl NestedDisplay for ConstAttribute
source§impl PartialEq<ConstAttribute> for ConstAttribute
impl PartialEq<ConstAttribute> for ConstAttribute
source§fn eq(&self, other: &ConstAttribute) -> bool
fn eq(&self, other: &ConstAttribute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.