pub struct CompoundSetExpression {
pub variable: Var,
pub operation: Token,
pub value: Pointer<Expression>,
}Expand description
A struct representing a set expression.
Fields§
§variable: VarThe variables whom values are being set.
operation: TokenThe compound operation like +=, //=, etc.
value: Pointer<Expression>The values that are being set, in the same order as variables, the length of these values may be more or less than the variables list.
Trait Implementations§
Source§impl Clone for CompoundSetExpression
impl Clone for CompoundSetExpression
Source§fn clone(&self) -> CompoundSetExpression
fn clone(&self) -> CompoundSetExpression
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 CompoundSetExpression
impl Debug for CompoundSetExpression
Source§impl GetRange for CompoundSetExpression
impl GetRange for CompoundSetExpression
Source§fn get_range(&self) -> Result<Range, GetRangeError>
fn get_range(&self) -> Result<Range, GetRangeError>
Get the range of the node. This will only fail if
Cst.status is
AstStatus::HasErrors.Source§impl Hash for CompoundSetExpression
impl Hash for CompoundSetExpression
Source§impl Ord for CompoundSetExpression
impl Ord for CompoundSetExpression
Source§fn cmp(&self, other: &CompoundSetExpression) -> Ordering
fn cmp(&self, other: &CompoundSetExpression) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl Parse for CompoundSetExpression
impl Parse for CompoundSetExpression
Source§impl PartialEq for CompoundSetExpression
impl PartialEq for CompoundSetExpression
Source§impl PartialOrd for CompoundSetExpression
impl PartialOrd for CompoundSetExpression
Source§impl Print for CompoundSetExpression
impl Print for CompoundSetExpression
impl Eq for CompoundSetExpression
impl StructuralPartialEq for CompoundSetExpression
Auto Trait Implementations§
impl Freeze for CompoundSetExpression
impl RefUnwindSafe for CompoundSetExpression
impl !Send for CompoundSetExpression
impl !Sync for CompoundSetExpression
impl Unpin for CompoundSetExpression
impl UnwindSafe for CompoundSetExpression
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