#[repr(u8)]
pub enum Class {
LD,
LDX,
ST,
STX,
ALU,
ALU64,
JMP,
JMP32,
}
Expand description
Instruction classes
Note: 32-bit ALU ops are denoted with Class::ALU
and 64-bit ALU ops are
Class::ALU64
yet 32-bit jump ops are in Class::JMP32
and 64-bit jump ops are in Class::JMP
.
Variants
LD
Immediate loads
LDX
Register loads
ST
Immediate stores
STX
Register stores
ALU
Arithmetic operations (32-bit)
ALU64
Arithmetic operation (64-bit)
JMP
Jump operations (64-bit)
JMP32
Jump operations (32-bit)
Trait Implementations
sourceimpl TryFrom<u8> for Class
impl TryFrom<u8> for Class
type Error = TryFromPrimitiveError<Class>
type Error = TryFromPrimitiveError<Class>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for Class
impl TryFromPrimitive for Class
type Primitive = u8
const NAME: &'static str = "Class"
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for Class
impl Eq for Class
impl StructuralEq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
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