pub enum BinaryOp {
Show 15 variants
Add,
Sub,
Mul,
Div,
Rem,
And,
Or,
Xor,
Shl,
Shr,
Sar,
Fma,
Pow,
Min,
Max,
}Expand description
Binary operations.
Variants§
Add
Addition.
Sub
Subtraction.
Mul
Multiplication.
Div
Division.
Rem
Remainder/modulo.
And
Bitwise AND.
Or
Bitwise OR.
Xor
Bitwise XOR.
Shl
Left shift.
Shr
Logical right shift.
Sar
Arithmetic right shift.
Fma
Fused multiply-add.
Pow
Power.
Min
Minimum.
Max
Maximum.
Trait Implementations§
impl Copy for BinaryOp
impl Eq for BinaryOp
impl StructuralPartialEq for BinaryOp
Auto Trait Implementations§
impl Freeze for BinaryOp
impl RefUnwindSafe for BinaryOp
impl Send for BinaryOp
impl Sync for BinaryOp
impl Unpin 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