#[repr(u32)]
pub enum SuperCode {
Misc,
Index,
Comparison,
Arithmetic,
}
Expand description
Determines instruction category (bits 0..2)
Variants
Misc
Miscellaneous instructions
- Conditional and unconditional jumps
- Function calls
- Function returns
- Move instructions
Subcode module: misc
Index
Indexing instructions
- Move to slot in indexable container
- Move out of a slot in an indexable container
Subcode module: index
Comparison
Comparison instructions (==
, <
, >=
, etc.)
Subcode module: comparison
Arithmetic
Arithmetic instructions (+
, *
, %
, etc.)
Subcode module: arithmetic
Implementations
Trait Implementations
sourceimpl<Rhs: Into<Instruction>> BitOr<Rhs> for SuperCode
impl<Rhs: Into<Instruction>> BitOr<Rhs> for SuperCode
sourceimpl From<Instruction> for SuperCode
impl From<Instruction> for SuperCode
sourcefn from(instruction: Instruction) -> Self
fn from(instruction: Instruction) -> Self
Converts to this type from the input type.
sourceimpl From<SuperCode> for Instruction
impl From<SuperCode> for Instruction
sourcefn from(value: SuperCode) -> Instruction
fn from(value: SuperCode) -> Instruction
Converts to this type from the input type.
impl Copy for SuperCode
Auto Trait Implementations
impl RefUnwindSafe for SuperCode
impl Send for SuperCode
impl Sync for SuperCode
impl Unpin for SuperCode
impl UnwindSafe for SuperCode
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