pub struct AssignExpr {
pub target: AssignTarget,
pub op: AssignOpToken,
pub value: Box<Expr>,
}Expand description
Assignment expression: x = 5, x += 1.
Fields§
§target: AssignTarget§op: AssignOpToken§value: Box<Expr>Implementations§
Trait Implementations§
Source§impl Clone for AssignExpr
impl Clone for AssignExpr
Source§fn clone(&self) -> AssignExpr
fn clone(&self) -> AssignExpr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssignExpr
impl Debug for AssignExpr
impl Eq for AssignExpr
Source§impl Hash for AssignExpr
impl Hash for AssignExpr
Source§impl PartialEq for AssignExpr
impl PartialEq for AssignExpr
Source§fn eq(&self, other: &AssignExpr) -> bool
fn eq(&self, other: &AssignExpr) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AssignExpr
Auto Trait Implementations§
impl Freeze for AssignExpr
impl RefUnwindSafe for AssignExpr
impl Send for AssignExpr
impl Sync for AssignExpr
impl Unpin for AssignExpr
impl UnsafeUnpin for AssignExpr
impl UnwindSafe for AssignExpr
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