Struct endbasic_core::ast::ArrayAssignmentSpan
source · pub struct ArrayAssignmentSpan {
pub vref: VarRef,
pub vref_pos: LineCol,
pub subscripts: Vec<Expr>,
pub expr: Expr,
}
Expand description
Components of an array assignment statement.
Fields§
§vref: VarRef
Reference to the array to modify.
vref_pos: LineCol
Position of the vref
.
subscripts: Vec<Expr>
Expressions to compute the subscripts to index the array.
expr: Expr
Expression to compute the value of the modified element.
Trait Implementations§
source§impl Debug for ArrayAssignmentSpan
impl Debug for ArrayAssignmentSpan
source§impl PartialEq for ArrayAssignmentSpan
impl PartialEq for ArrayAssignmentSpan
source§fn eq(&self, other: &ArrayAssignmentSpan) -> bool
fn eq(&self, other: &ArrayAssignmentSpan) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ArrayAssignmentSpan
Auto Trait Implementations§
impl Freeze for ArrayAssignmentSpan
impl RefUnwindSafe for ArrayAssignmentSpan
impl Send for ArrayAssignmentSpan
impl Sync for ArrayAssignmentSpan
impl Unpin for ArrayAssignmentSpan
impl UnwindSafe for ArrayAssignmentSpan
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