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
Var(Ident)
Index
FieldProjection
TupleFieldProjection
Trait Implementations
sourceimpl Clone for Assignable
impl Clone for Assignable
sourcefn clone(&self) -> Assignable
fn clone(&self) -> Assignable
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Assignable
impl Debug for Assignable
Auto Trait Implementations
impl RefUnwindSafe for Assignable
impl Send for Assignable
impl Sync for Assignable
impl Unpin for Assignable
impl UnwindSafe for Assignable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more