Struct syn::ExprAssignOp
source · pub struct ExprAssignOp {
pub attrs: Vec<Attribute>,
pub left: Box<Expr>,
pub op: BinOp,
pub right: Box<Expr>,
}Expand description
A compound assignment expression: counter += 1.
This type is available if Syn is built with the "full" feature.
Fields§
§attrs: Vec<Attribute>§left: Box<Expr>§op: BinOp§right: Box<Expr>Trait Implementations§
source§impl Clone for ExprAssignOp
impl Clone for ExprAssignOp
source§fn clone(&self) -> ExprAssignOp
fn clone(&self) -> ExprAssignOp
Returns a copy of the value. Read more
1.0.0 · 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 ExprAssignOp
impl Debug for ExprAssignOp
source§impl From<ExprAssignOp> for Expr
impl From<ExprAssignOp> for Expr
source§fn from(e: ExprAssignOp) -> Expr
fn from(e: ExprAssignOp) -> Expr
Converts to this type from the input type.