#[repr(u32)]
pub enum Subcode {
Add,
Sub,
Mul,
Div,
Rem,
Pow,
Rot,
Log,
}
Expand description
Arithmetic sub-opcode type (bits 2..5)
Variants
Add
Sub
Mul
Div
Rem
Pow
Rot
Currently unused
Log
Currently unused
Implementations
Trait Implementations
sourceimpl From<Instruction> for Subcode
impl From<Instruction> for Subcode
sourcefn from(instruction: Instruction) -> Self
fn from(instruction: Instruction) -> Self
Converts to this type from the input type.
sourceimpl From<Subcode> for Instruction
impl From<Subcode> for Instruction
sourcefn from(value: Subcode) -> Instruction
fn from(value: Subcode) -> Instruction
Converts to this type from the input type.
impl Copy for Subcode
Auto Trait Implementations
impl RefUnwindSafe for Subcode
impl Send for Subcode
impl Sync for Subcode
impl Unpin for Subcode
impl UnwindSafe for Subcode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more