Struct erg_parser::ast::ConstAttribute
source · [−]pub struct ConstAttribute {
pub obj: Box<ConstExpr>,
pub name: ConstLocal,
}
Fields
obj: Box<ConstExpr>
name: ConstLocal
Implementations
sourceimpl ConstAttribute
impl ConstAttribute
pub fn new(expr: ConstExpr, name: ConstLocal) -> Self
Trait Implementations
sourceimpl Clone for ConstAttribute
impl Clone for ConstAttribute
sourcefn clone(&self) -> ConstAttribute
fn clone(&self) -> ConstAttribute
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ConstAttribute
impl Debug for ConstAttribute
sourceimpl Display for ConstAttribute
impl Display for ConstAttribute
sourceimpl Hash for ConstAttribute
impl Hash for ConstAttribute
sourceimpl Locational for ConstAttribute
impl Locational for ConstAttribute
sourceimpl NestedDisplay for ConstAttribute
impl NestedDisplay for ConstAttribute
sourceimpl PartialEq<ConstAttribute> for ConstAttribute
impl PartialEq<ConstAttribute> for ConstAttribute
sourcefn eq(&self, other: &ConstAttribute) -> bool
fn eq(&self, other: &ConstAttribute) -> bool
impl Eq for ConstAttribute
impl StructuralEq for ConstAttribute
impl StructuralPartialEq for ConstAttribute
Auto Trait Implementations
impl RefUnwindSafe for ConstAttribute
impl !Send for ConstAttribute
impl !Sync for ConstAttribute
impl Unpin for ConstAttribute
impl UnwindSafe for ConstAttribute
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more