Enum kailua_syntax::ast::Var
[−]
[src]
pub enum Var { Name(Spanned<NameRef>), Index(Spanned<Exp>, Spanned<Exp>), IndexName(Spanned<Exp>, Spanned<Name>), }
A left-hand side of the assignment.
Variants
Name(Spanned<NameRef>)
name
.
Index(Spanned<Exp>, Spanned<Exp>)
exp[exp]
.
IndexName(Spanned<Exp>, Spanned<Name>)
exp.name
. Distinguished from Var::Index
for the purpose of IDE support.
Trait Implementations
impl Clone for Var
[src]
fn clone(&self) -> Var
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Var
[src]
fn eq(&self, __arg_0: &Var) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Var) -> bool
This method tests for !=
.