pub enum AssignTarget {
Variable(String),
Index {
object: Expr,
index: Expr,
},
Field {
object: Expr,
field: String,
},
}Variants§
Variable(String)
Index
Field
Assignment to a struct field: obj.field = v. The object may itself
be a field/index chain so long as the complete place is rooted in a
mutable binding.
Trait Implementations§
Source§impl Clone for AssignTarget
impl Clone for AssignTarget
Auto Trait Implementations§
impl Freeze for AssignTarget
impl RefUnwindSafe for AssignTarget
impl Send for AssignTarget
impl Sync for AssignTarget
impl Unpin for AssignTarget
impl UnsafeUnpin for AssignTarget
impl UnwindSafe for AssignTarget
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