Enum rustc_hir::hir::BinOpKind [−][src]
pub enum BinOpKind {
Show 18 variants
Add,
Sub,
Mul,
Div,
Rem,
And,
Or,
BitXor,
BitAnd,
BitOr,
Shl,
Shr,
Eq,
Lt,
Le,
Ne,
Ge,
Gt,
}
Variants
The +
operator (addition).
The -
operator (subtraction).
The *
operator (multiplication).
The /
operator (division).
The %
operator (modulus).
The &&
operator (logical and).
The ||
operator (logical or).
The ^
operator (bitwise xor).
The &
operator (bitwise and).
The |
operator (bitwise or).
The <<
operator (shift left).
The >>
operator (shift right).
The ==
operator (equality).
The <
operator (less than).
The <=
operator (less than or equal to).
The !=
operator (not equal to).
The >=
operator (greater than or equal to).
The >
operator (greater than).
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BinOpKind
impl UnwindSafe for BinOpKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Add
: 0 bytesSub
: 0 bytesMul
: 0 bytesDiv
: 0 bytesRem
: 0 bytesAnd
: 0 bytesOr
: 0 bytesBitXor
: 0 bytesBitAnd
: 0 bytesBitOr
: 0 bytesShl
: 0 bytesShr
: 0 bytesEq
: 0 bytesLt
: 0 bytesLe
: 0 bytesNe
: 0 bytesGe
: 0 bytesGt
: 0 bytes