Struct syn::ExprBinary [−][src]
pub struct ExprBinary { pub attrs: Vec<Attribute>, pub left: Box<Expr>, pub op: BinOp, pub right: Box<Expr>, }
A binary operation: a + b
, a * b
.
This type is available only if Syn is built with the "derive"
or
"full"
feature.
Fields
attrs: Vec<Attribute>
left: Box<Expr>
op: BinOp
right: Box<Expr>
Trait Implementations
impl Clone for ExprBinary
[src]
impl Clone for ExprBinary
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<ExprBinary> for Expr
[src]
impl From<ExprBinary> for Expr
[src]fn from(e: ExprBinary) -> Expr
[src]
impl Hash for ExprBinary
[src]
impl Hash for ExprBinary
[src]impl Parse for ExprBinary
[src]
impl Parse for ExprBinary
[src]fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<ExprBinary> for ExprBinary
[src]
impl PartialEq<ExprBinary> for ExprBinary
[src]impl ToTokens for ExprBinary
[src]
impl ToTokens for ExprBinary
[src]