[−][src]Struct yaxpeax_x86::protected_mode::Instruction
Fields
prefixes: Prefixes
Implementations
impl Instruction
[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
pub fn decode<T: IntoIterator<Item = u8>>(
&self,
bytes: T
) -> Result<Instruction, Self::Error>
[src]
&self,
bytes: T
) -> Result<Instruction, Self::Error>
pub fn decode_into<T: IntoIterator<Item = u8>>(
&self,
instr: &mut Instruction,
bytes: T
) -> Result<(), Self::Error>
[src]
&self,
instr: &mut Instruction,
bytes: T
) -> Result<(), Self::Error>
impl Default for Instruction
[src]
impl Display for Instruction
[src]
impl Instruction for Instruction
[src]
pub fn well_defined(&self) -> bool
[src]
impl LengthedInstruction for Instruction
[src]
type Unit = AddressDiff<u32>
pub fn len(&self) -> Self::Unit
[src]
pub fn min_size() -> Self::Unit
[src]
impl<T: Write, Color: Display, Y: YaxColors<Color>> ShowContextual<u64, [Option<String>], Color, T, Y> for Instruction
[src]
Auto Trait Implementations
impl RefUnwindSafe for Instruction
[src]
impl Send for Instruction
[src]
impl Sync for Instruction
[src]
impl Unpin for Instruction
[src]
impl UnwindSafe for Instruction
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,