Struct erg_parser::ast::TupleAttribute
source · pub struct TupleAttribute {
pub obj: Box<Expr>,
pub index: Literal,
}
Expand description
e.g. obj.0, obj.1
Fields§
§obj: Box<Expr>
§index: Literal
Implementations§
Trait Implementations§
source§impl Clone for TupleAttribute
impl Clone for TupleAttribute
source§fn clone(&self) -> TupleAttribute
fn clone(&self) -> TupleAttribute
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 TupleAttribute
impl Debug for TupleAttribute
source§impl Display for TupleAttribute
impl Display for TupleAttribute
source§impl Hash for TupleAttribute
impl Hash for TupleAttribute
source§impl Locational for TupleAttribute
impl Locational for TupleAttribute
source§impl NestedDisplay for TupleAttribute
impl NestedDisplay for TupleAttribute
source§impl PartialEq for TupleAttribute
impl PartialEq for TupleAttribute
impl Eq for TupleAttribute
impl StructuralPartialEq for TupleAttribute
Auto Trait Implementations§
impl Freeze for TupleAttribute
impl RefUnwindSafe for TupleAttribute
impl Send for TupleAttribute
impl Sync for TupleAttribute
impl Unpin for TupleAttribute
impl UnwindSafe for TupleAttribute
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
)