Enum syn::BinOp [−][src]
pub enum BinOp {}Show 28 variants
Add(Add), Sub(Sub), Mul(Star), Div(Div), Rem(Rem), And(AndAnd), Or(OrOr), BitXor(Caret), BitAnd(And), BitOr(Or), Shl(Shl), Shr(Shr), Eq(EqEq), Lt(Lt), Le(Le), Ne(Ne), Ge(Ge), Gt(Gt), AddEq(AddEq), SubEq(SubEq), MulEq(MulEq), DivEq(DivEq), RemEq(RemEq), BitXorEq(CaretEq), BitAndEq(AndEq), BitOrEq(OrEq), ShlEq(ShlEq), ShrEq(ShrEq),
Expand description
A binary operator: +
, +=
, &
.
This type is available only if Syn is built with the "derive"
or "full"
feature.
Variants
The +
operator (addition)
Tuple Fields of Add
0: Add
The -
operator (subtraction)
Tuple Fields of Sub
0: Sub
The *
operator (multiplication)
Tuple Fields of Mul
0: Star
The /
operator (division)
Tuple Fields of Div
0: Div
The %
operator (modulus)
Tuple Fields of Rem
0: Rem
The &&
operator (logical and)
Tuple Fields of And
0: AndAnd
The ||
operator (logical or)
Tuple Fields of Or
0: OrOr
The ^
operator (bitwise xor)
Tuple Fields of BitXor
0: Caret
The &
operator (bitwise and)
Tuple Fields of BitAnd
0: And
The |
operator (bitwise or)
Tuple Fields of BitOr
0: Or
The <<
operator (shift left)
Tuple Fields of Shl
0: Shl
The >>
operator (shift right)
Tuple Fields of Shr
0: Shr
The ==
operator (equality)
Tuple Fields of Eq
0: EqEq
The <
operator (less than)
Tuple Fields of Lt
0: Lt
The <=
operator (less than or equal to)
Tuple Fields of Le
0: Le
The !=
operator (not equal to)
Tuple Fields of Ne
0: Ne
The >=
operator (greater than or equal to)
Tuple Fields of Ge
0: Ge
The >
operator (greater than)
Tuple Fields of Gt
0: Gt
The +=
operator
Tuple Fields of AddEq
0: AddEq
The -=
operator
Tuple Fields of SubEq
0: SubEq
The *=
operator
Tuple Fields of MulEq
0: MulEq
The /=
operator
Tuple Fields of DivEq
0: DivEq
The %=
operator
Tuple Fields of RemEq
0: RemEq
The ^=
operator
Tuple Fields of BitXorEq
0: CaretEq
The &=
operator
Tuple Fields of BitAndEq
0: AndEq
The |=
operator
Tuple Fields of BitOrEq
0: OrEq
The <<=
operator
Tuple Fields of ShlEq
0: ShlEq
The >>=
operator
Tuple Fields of ShrEq
0: ShrEq
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BinOp
impl UnwindSafe for BinOp
Blanket Implementations
Mutably borrows from an owned value. Read more