Struct syn::ExprBinary [−][src]
pub struct ExprBinary { pub attrs: Vec<Attribute>, pub left: Box<Expr>, pub op: BinOp, pub right: Box<Expr>, }
This is supported on crate features
full
or derive
only.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]This is supported on crate feature
clone-impls
only.fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ExprBinary
[src]
impl Debug for ExprBinary
[src]This is supported on crate feature
extra-traits
only.impl Eq for ExprBinary
[src]
impl Eq for ExprBinary
[src]This is supported on crate feature
extra-traits
only.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]This is supported on crate feature
extra-traits
only.impl Parse for ExprBinary
[src]
impl Parse for ExprBinary
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<ExprBinary> for ExprBinary
[src]
impl PartialEq<ExprBinary> for ExprBinary
[src]This is supported on crate feature
extra-traits
only.impl ToTokens for ExprBinary
[src]
impl ToTokens for ExprBinary
[src]This is supported on crate feature
printing
only.fn to_tokens(&self, tokens: &mut TokenStream)
[src]
pub fn to_token_stream(&self) -> TokenStream
[src]
pub fn into_token_stream(self) -> TokenStream
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExprBinary
impl RefUnwindSafe for ExprBinary
impl !Send for ExprBinary
impl !Send for ExprBinary
impl !Sync for ExprBinary
impl !Sync for ExprBinary
impl Unpin for ExprBinary
impl Unpin for ExprBinary
impl UnwindSafe for ExprBinary
impl UnwindSafe for ExprBinary