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 only 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§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.