pub struct Instruction {
pub offset: u32,
pub opcode: Opcode,
pub len: u32,
pub operands: Vec<Operand>,
pub payload: Payload,
}Expand description
A decoded instruction.
Fields§
§offset: u32Offset of the instruction within its function.
opcode: OpcodeThe instruction.
len: u32Total encoded length in bytes, including the opcode byte.
operands: Vec<Operand>The fixed operands, in encoding order.
payload: PayloadThe variable-length part, if any.
Implementations§
Source§impl Instruction
impl Instruction
Sourcepub fn branch_targets(&self) -> Vec<i64>
pub fn branch_targets(&self) -> Vec<i64>
Offsets within the function that this instruction can branch to.
Trait Implementations§
Source§impl Clone for Instruction
impl Clone for Instruction
Source§impl Debug for Instruction
impl Debug for Instruction
impl Eq for Instruction
Source§impl PartialEq for Instruction
impl PartialEq for Instruction
impl StructuralPartialEq for Instruction
Auto Trait Implementations§
impl Forget for Instruction
impl Freeze for Instructionwhere
*const u8 is !null: Freeze,
PhantomData<Operand>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(Value, i64)>: Freeze,
PhantomData<String>: Freeze,
impl Move for Instruction
impl RefUnwindSafe for Instruction
impl Send for Instructionwhere
RawVecInner: Send,
impl Sync for Instructionwhere
RawVecInner: Sync,
impl Unpin for Instruction
impl UnsafeUnpin for Instructionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Operand>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(Value, i64)>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Instructionwhere
RawVecInner: UnwindSafe,
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