#[non_exhaustive]pub enum Opcode {
Opcode(u16),
LongOpcode(u32),
}
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.
Trait Implementations§
Source§impl From<Instruction> for Opcode
impl From<Instruction> for Opcode
Source§fn from(instruction: Instruction) -> Opcode
fn from(instruction: Instruction) -> Opcode
Converts to this type from the input type.
Source§impl IntoEnumIterator for Opcode
impl IntoEnumIterator for Opcode
type Iterator = OpcodeIter
fn iter() -> OpcodeIter ⓘ
Source§impl TryFrom<Opcode> for Instruction
impl TryFrom<Opcode> for Instruction
impl Copy for Opcode
impl Eq for Opcode
impl StructuralPartialEq for Opcode
Auto Trait Implementations§
impl Freeze for Opcode
impl RefUnwindSafe for Opcode
impl Send for Opcode
impl Sync for Opcode
impl Unpin for Opcode
impl UnwindSafe for Opcode
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