Struct syn::ExprAssign
source · pub struct ExprAssign {
pub attrs: Vec<Attribute>,
pub left: Box<Expr>,
pub eq_token: Eq,
pub right: Box<Expr>,
}
Expand description
An assignment expression: a = compute()
.
This type is available if Syn is built with the "full"
feature.
Fields§
§attrs: Vec<Attribute>
§left: Box<Expr>
§eq_token: Eq
§right: Box<Expr>
Trait Implementations§
source§impl Clone for ExprAssign
impl Clone for ExprAssign
source§fn clone(&self) -> ExprAssign
fn clone(&self) -> ExprAssign
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 ExprAssign
impl Debug for ExprAssign
source§impl From<ExprAssign> for Expr
impl From<ExprAssign> for Expr
source§fn from(e: ExprAssign) -> Expr
fn from(e: ExprAssign) -> Expr
Converts to this type from the input type.