pub struct Assign {
pub left: Box<Expr>,
pub op: AssignOperator,
pub right: Box<Expr>,
}Expand description
Represents an assignment expression in the AST. An assignment binds a value to a variable.
Fields§
§left: Box<Expr>The variable being assigned to.
op: AssignOperatorThe assignment operator.
right: Box<Expr>The value being assigned.
Trait Implementations§
impl StructuralPartialEq for Assign
Auto Trait Implementations§
impl Freeze for Assign
impl RefUnwindSafe for Assign
impl Send for Assign
impl Sync for Assign
impl Unpin for Assign
impl UnwindSafe for Assign
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)