pub struct SetExpression {
pub variables: List<Var>,
pub equal: Token,
pub values: List<Pointer<Expression>>,
}Expand description
A struct representing a set expression.
Fields§
§variables: List<Var>The variables whom values are being set.
equal: TokenThe = character.
values: List<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 SetExpression
impl Clone for SetExpression
Source§fn clone(&self) -> SetExpression
fn clone(&self) -> SetExpression
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 SetExpression
impl Debug for SetExpression
Source§impl GetRange for SetExpression
impl GetRange for SetExpression
Source§impl Hash for SetExpression
impl Hash for SetExpression
Source§impl Ord for SetExpression
impl Ord for SetExpression
Source§fn cmp(&self, other: &SetExpression) -> Ordering
fn cmp(&self, other: &SetExpression) -> 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 SetExpression
impl Parse for SetExpression
Source§impl PartialEq for SetExpression
impl PartialEq for SetExpression
Source§impl PartialOrd for SetExpression
impl PartialOrd for SetExpression
Source§impl Print for SetExpression
impl Print for SetExpression
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 SetExpression
impl StructuralPartialEq for SetExpression
Auto Trait Implementations§
impl Freeze for SetExpression
impl RefUnwindSafe for SetExpression
impl !Send for SetExpression
impl !Sync for SetExpression
impl Unpin for SetExpression
impl UnwindSafe for SetExpression
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