pub enum BinaryOp {
Show 34 variants
Add,
Sub,
Mul,
UDiv,
SDiv,
URem,
SRem,
FAdd,
FSub,
FMul,
FDiv,
FRem,
And,
Or,
Xor,
Shl,
LShr,
AShr,
ICmpEq,
ICmpNe,
ICmpUgt,
ICmpUge,
ICmpUlt,
ICmpUle,
ICmpSgt,
ICmpSge,
ICmpSlt,
ICmpSle,
FCmpOeq,
FCmpOne,
FCmpOgt,
FCmpOge,
FCmpOlt,
FCmpOle,
}Expand description
Kind of binary operation.
Variants§
Add
Integer addition.
Sub
Integer subtraction.
Mul
Integer multiplication.
UDiv
Unsigned integer division.
SDiv
Signed integer division.
URem
Unsigned integer remainder.
SRem
Signed integer remainder.
FAdd
Floating point addition.
FSub
Floating point subtraction.
FMul
Floating point multiplication.
FDiv
Floating point division.
FRem
Floating point remainder.
And
Bitwise AND.
Or
Bitwise OR.
Xor
Bitwise XOR.
Shl
Shift left.
LShr
Logical shift right.
AShr
Arithmetic shift right.
ICmpEq
Integer equality.
ICmpNe
Integer inequality.
ICmpUgt
Unsigned greater than.
ICmpUge
Unsigned greater or equal.
ICmpUlt
Unsigned less than.
ICmpUle
Unsigned less or equal.
ICmpSgt
Signed greater than.
ICmpSge
Signed greater or equal.
ICmpSlt
Signed less than.
ICmpSle
Signed less or equal.
FCmpOeq
Ordered equal.
FCmpOne
Ordered not equal.
FCmpOgt
Ordered greater than.
FCmpOge
Ordered greater or equal.
FCmpOlt
Ordered less than.
FCmpOle
Ordered less or equal.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BinaryOp
impl<'de> Deserialize<'de> for BinaryOp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.