pub enum InstArithmeticOp {
Add,
Sub,
Mul,
Div,
Rem,
}
Expand description
An operation between two values on the machine.
Variants§
Add
The add operation. a + b
.
Sub
The sub operation. a - b
.
Mul
The multiply operation. a * b
.
Div
The division operation. a / b
.
Rem
The remainder operation. a % b
.
Trait Implementations§
Source§impl Clone for InstArithmeticOp
impl Clone for InstArithmeticOp
Source§fn clone(&self) -> InstArithmeticOp
fn clone(&self) -> InstArithmeticOp
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InstArithmeticOp
impl Debug for InstArithmeticOp
Source§impl<'de> Decode<'de, Binary> for InstArithmeticOp
impl<'de> Decode<'de, Binary> for InstArithmeticOp
Source§impl<'de> Decode<'de, Text> for InstArithmeticOp
impl<'de> Decode<'de, Text> for InstArithmeticOp
Source§impl<'de> Deserialize<'de> for InstArithmeticOp
impl<'de> Deserialize<'de> for InstArithmeticOp
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
Source§impl Display for InstArithmeticOp
impl Display for InstArithmeticOp
Source§impl Encode<Binary> for InstArithmeticOp
impl Encode<Binary> for InstArithmeticOp
Source§impl Encode<Text> for InstArithmeticOp
impl Encode<Text> for InstArithmeticOp
Source§impl Serialize for InstArithmeticOp
impl Serialize for InstArithmeticOp
Source§impl TryClone for InstArithmeticOp
impl TryClone for InstArithmeticOp
impl Copy for InstArithmeticOp
Auto Trait Implementations§
impl Freeze for InstArithmeticOp
impl RefUnwindSafe for InstArithmeticOp
impl Send for InstArithmeticOp
impl Sync for InstArithmeticOp
impl Unpin for InstArithmeticOp
impl UnwindSafe for InstArithmeticOp
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)