#[non_exhaustive]pub enum BinaryOp {
Show 19 variants
Add,
Sub,
Mul,
Div,
Mod,
Pow,
Lt,
Le,
Gt,
Ge,
Eq,
Ne,
And,
Or,
BitAnd,
BitOr,
BitXor,
Shl,
Shr,
}Expand description
Binary operator kinds supported by the GenApi formula language.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Add
+
Sub
-
Mul
*
Div
/: truncating in integer mode.
Mod
%
Pow
**
Lt
<
Le
<=
Gt
>
Ge
>=
Eq
= (and the tolerated ==)
Ne
<> (and the tolerated !=)
And
&&
Or
||
BitAnd
&
BitOr
|
BitXor
^
Shl
<<
Shr
>>
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 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