Enum sway_ast::assignable::Assignable
source · pub enum Assignable {
Var(Ident),
Index {
target: Box<Assignable>,
arg: SquareBrackets<Box<Expr>>,
},
FieldProjection {
target: Box<Assignable>,
dot_token: DotToken,
name: Ident,
},
TupleFieldProjection {
target: Box<Assignable>,
dot_token: DotToken,
field: BigUint,
field_span: Span,
},
}Variants§
Trait Implementations§
source§impl Clone for Assignable
impl Clone for Assignable
source§fn clone(&self) -> Assignable
fn clone(&self) -> Assignable
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 more