pub struct AccessExpr {
pub base: Box<Expr>,
pub access: AccessKind,
pub token: Token,
}Expand description
Represents an access expression in the AST. It includes accessing a field or indexing into a collection.
Fields§
§base: Box<Expr>The base expression being accessed.
access: AccessKindThe kind of access (field or index).
token: TokenThe token representing the access operation (e.g., ., [, ]).
Trait Implementations§
Source§impl Clone for AccessExpr
impl Clone for AccessExpr
Source§fn clone(&self) -> AccessExpr
fn clone(&self) -> AccessExpr
Returns a duplicate 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 AccessExpr
impl Debug for AccessExpr
Source§impl GetSpan for AccessExpr
impl GetSpan for AccessExpr
Source§impl PartialEq for AccessExpr
impl PartialEq for AccessExpr
impl StructuralPartialEq for AccessExpr
Auto Trait Implementations§
impl Freeze for AccessExpr
impl RefUnwindSafe for AccessExpr
impl Send for AccessExpr
impl Sync for AccessExpr
impl Unpin for AccessExpr
impl UnwindSafe for AccessExpr
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