Struct erg_parser::ast::ConstAttribute
source · pub struct ConstAttribute {
pub obj: Box<ConstExpr>,
pub name: ConstIdentifier,
}Fields§
§obj: Box<ConstExpr>§name: ConstIdentifierImplementations§
source§impl ConstAttribute
impl ConstAttribute
pub fn new(expr: ConstExpr, name: ConstIdentifier) -> Self
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 for ConstAttribute
impl PartialEq for ConstAttribute
impl Eq for ConstAttribute
impl StructuralPartialEq for ConstAttribute
Auto Trait Implementations§
impl Freeze for ConstAttribute
impl RefUnwindSafe for ConstAttribute
impl Send for ConstAttribute
impl Sync for ConstAttribute
impl Unpin for ConstAttribute
impl UnwindSafe for ConstAttribute
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)