Struct x86asm::Instruction
[−]
[src]
pub struct Instruction { pub mnemonic: Mnemonic, pub operand1: Option<Operand>, pub operand2: Option<Operand>, pub operand3: Option<Operand>, pub operand4: Option<Operand>, pub lock: bool, pub rounding_mode: Option<RoundingMode>, pub merge_mode: Option<MergeMode>, pub sae: bool, pub mask: Option<MaskReg>, pub broadcast: Option<BroadcastMode>, }
Fields
mnemonic: Mnemonic
operand1: Option<Operand>
operand2: Option<Operand>
operand3: Option<Operand>
operand4: Option<Operand>
lock: bool
rounding_mode: Option<RoundingMode>
merge_mode: Option<MergeMode>
sae: bool
mask: Option<MaskReg>
broadcast: Option<BroadcastMode>
Methods
impl Instruction
[src]
fn new0(mnemonic: Mnemonic) -> Instruction
[src]
fn new1(mnemonic: Mnemonic, operand1: Operand) -> Instruction
[src]
fn new2(mnemonic: Mnemonic, operand1: Operand, operand2: Operand) -> Instruction
[src]
fn new3(
mnemonic: Mnemonic,
operand1: Operand,
operand2: Operand,
operand3: Operand
) -> Instruction
[src]
mnemonic: Mnemonic,
operand1: Operand,
operand2: Operand,
operand3: Operand
) -> Instruction
fn new4(
mnemonic: Mnemonic,
operand1: Operand,
operand2: Operand,
operand3: Operand,
operand4: Operand
) -> Instruction
[src]
mnemonic: Mnemonic,
operand1: Operand,
operand2: Operand,
operand3: Operand,
operand4: Operand
) -> Instruction
fn operands(&self) -> [&Option<Operand>; 4]
[src]
fn encode<W>(
&self,
writer: &mut W,
mode: Mode
) -> Result<usize, InstructionEncodingError> where
W: Write,
[src]
&self,
writer: &mut W,
mode: Mode
) -> Result<usize, InstructionEncodingError> where
W: Write,
Trait Implementations
impl Copy for Instruction
[src]
impl Clone for Instruction
[src]
fn clone(&self) -> Instruction
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Instruction
[src]
impl Default for Instruction
[src]
fn default() -> Instruction
[src]
Returns the "default value" for a type. Read more
impl PartialEq for Instruction
[src]
fn eq(&self, other: &Instruction) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.