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
Add(Add)The + operator (addition)
Tuple Fields of Add
0: AddSub(Sub)The - operator (subtraction)
Tuple Fields of Sub
0: SubMul(Star)The * operator (multiplication)
Tuple Fields of Mul
0: StarDiv(Div)The / operator (division)
Tuple Fields of Div
0: DivRem(Rem)The % operator (modulus)
Tuple Fields of Rem
0: RemAnd(AndAnd)The && operator (logical and)
Tuple Fields of And
0: AndAndOr(OrOr)The || operator (logical or)
Tuple Fields of Or
0: OrOrBitXor(Caret)The ^ operator (bitwise xor)
Tuple Fields of BitXor
0: CaretBitAnd(And)The & operator (bitwise and)
Tuple Fields of BitAnd
0: AndBitOr(Or)The | operator (bitwise or)
Tuple Fields of BitOr
0: OrShl(Shl)The << operator (shift left)
Tuple Fields of Shl
0: ShlShr(Shr)The >> operator (shift right)
Tuple Fields of Shr
0: ShrEq(EqEq)The == operator (equality)
Tuple Fields of Eq
0: EqEqLt(Lt)The < operator (less than)
Tuple Fields of Lt
0: LtLe(Le)The <= operator (less than or equal to)
Tuple Fields of Le
0: LeNe(Ne)The != operator (not equal to)
Tuple Fields of Ne
0: NeGe(Ge)The >= operator (greater than or equal to)
Tuple Fields of Ge
0: GeGt(Gt)The > operator (greater than)
Tuple Fields of Gt
0: GtAddEq(AddEq)The += operator
Tuple Fields of AddEq
0: AddEqSubEq(SubEq)The -= operator
Tuple Fields of SubEq
0: SubEqMulEq(MulEq)The *= operator
Tuple Fields of MulEq
0: MulEqDivEq(DivEq)The /= operator
Tuple Fields of DivEq
0: DivEqRemEq(RemEq)The %= operator
Tuple Fields of RemEq
0: RemEqBitXorEq(CaretEq)The ^= operator
Tuple Fields of BitXorEq
0: CaretEqBitAndEq(AndEq)The &= operator
Tuple Fields of BitAndEq
0: AndEqBitOrEq(OrEq)The |= operator
Tuple Fields of BitOrEq
0: OrEqShlEq(ShlEq)The <<= operator
Tuple Fields of ShlEq
0: ShlEqShrEq(ShrEq)The >>= operator
Tuple Fields of ShrEq
0: ShrEqTrait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BinOp
impl UnwindSafe for BinOp
Blanket Implementations
Mutably borrows from an owned value. Read more