[][src]Struct yaxpeax_x86::protected_mode::Instruction

pub struct Instruction {
    pub prefixes: Prefixes,
    // some fields omitted
}

Fields

prefixes: Prefixes

Implementations

impl Instruction[src]

pub fn write_to<T: Write>(&self, out: &mut T) -> Result[src]

impl Instruction[src]

pub fn opcode(&self) -> Opcode[src]

pub fn operand(&self, i: u8) -> Operand[src]

get the Operand at the provided index.

panics if the index is >= 4.

pub fn operand_count(&self) -> u8[src]

get the number of operands in this instruction. useful in iterating an instruction's operands generically.

pub fn operand_present(&self, i: u8) -> bool[src]

check if operand i is an actual operand or not. will be false for i >= inst.operand_count().

pub fn invalid() -> Instruction[src]

build a new instruction representing nothing in particular. this is primarily useful as a default to pass to decode_into.

pub fn is_invalid(&self) -> bool[src]

pub fn segment_override_for_op(&self, op: u8) -> Option<Segment>[src]

Trait Implementations

impl<T: Write, Color: Display, Y: YaxColors<Color>> Colorize<T, Color, Y> for Instruction[src]

impl Debug for Instruction[src]

impl Decoder<Instruction> for InstDecoder[src]

type Error = DecodeError

impl Default for Instruction[src]

impl Display for Instruction[src]

impl Instruction for Instruction[src]

impl LengthedInstruction for Instruction[src]

type Unit = AddressDiff<u32>

impl<T: Write, Color: Display, Y: YaxColors<Color>> ShowContextual<u64, [Option<String>], Color, T, Y> for Instruction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.