pub enum BinaryOp {
Show 13 variants
Add,
Sub,
Mul,
UDiv,
SDiv,
URem,
SRem,
Shl,
LShr,
AShr,
And,
Or,
Xor,
}Expand description
A binary operator code (LLVM’s BinaryOpcodes).
Variants§
Add
Addition.
Sub
Subtraction.
Mul
Multiplication.
UDiv
Unsigned division.
SDiv
Signed division.
URem
Unsigned remainder.
SRem
Signed remainder.
Shl
Shift left.
LShr
Logical shift right.
AShr
Arithmetic shift right.
And
Bitwise and.
Or
Bitwise or.
Xor
Bitwise exclusive or.
Trait Implementations§
impl Copy for BinaryOp
impl Eq for BinaryOp
impl StructuralPartialEq for BinaryOp
Auto Trait Implementations§
impl Forget for BinaryOp
impl Freeze for BinaryOp
impl RefUnwindSafe for BinaryOp
impl Send for BinaryOp
impl Sync for BinaryOp
impl Unpin for BinaryOp
impl UnsafeUnpin for BinaryOp
impl UnwindSafe for BinaryOp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more