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 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 CompoundSetExpression
impl Debug for CompoundSetExpression
Source§impl GetRange for CompoundSetExpression
impl GetRange for CompoundSetExpression
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
Source§fn print_final_trivia(&self) -> String
fn print_final_trivia(&self) -> String
Prints only the very final trivia. Used for the default implementation of
Print::print, which just joins Print::print_without_final_trivia
and this function.Source§fn print_without_final_trivia(&self) -> String
fn print_without_final_trivia(&self) -> String
Prints the whole token including all surrounding trivia, excluding the
very last trailing trivia.
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