Struct resast::expr::AssignExpr
source · [−]pub struct AssignExpr<'a> {
pub operator: AssignOp,
pub left: AssignLeft<'a>,
pub right: Box<Expr<'a>>,
}
Expand description
An assignment or update + assignment operation
Fields
operator: AssignOp
left: AssignLeft<'a>
right: Box<Expr<'a>>
Trait Implementations
sourceimpl<'a> Clone for AssignExpr<'a>
impl<'a> Clone for AssignExpr<'a>
sourcefn clone(&self) -> AssignExpr<'a>
fn clone(&self) -> AssignExpr<'a>
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<'a> Debug for AssignExpr<'a>
impl<'a> Debug for AssignExpr<'a>
sourceimpl<'a> From<AssignExpr<'a>> for AssignExpr<'a>
impl<'a> From<AssignExpr<'a>> for AssignExpr<'a>
sourcefn from(other: AssignExpr<'a>) -> Self
fn from(other: AssignExpr<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> PartialEq<AssignExpr<'a>> for AssignExpr<'a>
impl<'a> PartialEq<AssignExpr<'a>> for AssignExpr<'a>
sourcefn eq(&self, other: &AssignExpr<'a>) -> bool
fn eq(&self, other: &AssignExpr<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl<'a> StructuralPartialEq for AssignExpr<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for AssignExpr<'a>
impl<'a> Send for AssignExpr<'a>
impl<'a> Sync for AssignExpr<'a>
impl<'a> Unpin for AssignExpr<'a>
impl<'a> UnwindSafe for AssignExpr<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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