pub struct OpcodeInfo {
pub tag: u8,
pub mnemonic: &'static str,
pub byte_size: usize,
pub is_branch: bool,
pub is_terminator: bool,
}Expand description
A dispatch table mapping opcode tags to handler descriptions.
Used for debugging, introspection, and code generation tooling.
Fields§
§tag: u8Opcode tag byte (as used in binary encoding).
mnemonic: &'static strHuman-readable mnemonic.
byte_size: usizeNumber of bytes used by the instruction (including the tag byte).
is_branch: boolWhether the instruction affects control flow.
is_terminator: boolWhether the instruction terminates a basic block.
Trait Implementations§
Source§impl Clone for OpcodeInfo
impl Clone for OpcodeInfo
Source§fn clone(&self) -> OpcodeInfo
fn clone(&self) -> OpcodeInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OpcodeInfo
impl RefUnwindSafe for OpcodeInfo
impl Send for OpcodeInfo
impl Sync for OpcodeInfo
impl Unpin for OpcodeInfo
impl UnsafeUnpin for OpcodeInfo
impl UnwindSafe for OpcodeInfo
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