pub struct Instruction {
pub mnemonic: Mnemonic,
pub operands: OperandList,
pub size_hint: Option<OperandSize>,
pub prefixes: PrefixList,
pub opmask: Option<Register>,
pub zeroing: bool,
pub broadcast: Option<BroadcastMode>,
pub span: Span,
}Expand description
A parsed instruction before encoding.
Fields§
§mnemonic: MnemonicInstruction mnemonic (lower-cased), e.g. "mov", "add".
operands: OperandListParsed operands (0–4), in Intel order (dest, src, …).
size_hint: Option<OperandSize>Explicit operand-size hint from a ptr qualifier.
prefixes: PrefixListInstruction prefixes (lock, rep, repne, segment overrides).
opmask: Option<Register>AVX-512 opmask register decorator ({k1}–{k7}).
zeroing: boolAVX-512 zeroing-masking decorator ({z}). Only valid with opmask.
broadcast: Option<BroadcastMode>AVX-512 broadcast decorator ({1to2}, {1to4}, {1to8}, {1to16}).
span: SpanSource location of the entire instruction.
Trait Implementations§
Source§impl Clone for Instruction
impl Clone for Instruction
Source§fn clone(&self) -> Instruction
fn clone(&self) -> Instruction
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 moreSource§impl Debug for Instruction
impl Debug for Instruction
Source§impl PartialEq for Instruction
impl PartialEq for Instruction
impl StructuralPartialEq for Instruction
Auto Trait Implementations§
impl Freeze for Instruction
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
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