#[repr(u8)]pub enum Opcode {
Match8 = 0,
Match16 = 1,
Match24 = 2,
Match32 = 3,
Match48 = 4,
Match64 = 5,
Call = 6,
Return = 7,
Trampoline = 8,
}Expand description
Instruction opcodes (4-bit).
Variants§
Match8 = 0
Match16 = 1
Match24 = 2
Match32 = 3
Match48 = 4
Match64 = 5
Call = 6
Return = 7
Trampoline = 8
Implementations§
Source§impl Opcode
impl Opcode
pub fn from_u8(v: u8) -> Self
Sourcepub fn step_count(self) -> u16
pub fn step_count(self) -> u16
Number of steps this instruction occupies.
Sourcepub fn is_extended_match(self) -> bool
pub fn is_extended_match(self) -> bool
Whether this is an extended Match (Match16-64).
Sourcepub fn payload_slots(self) -> usize
pub fn payload_slots(self) -> usize
Payload capacity in u16 slots for extended Match variants.
Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.