Enum iced_x86::OpKind

source ·
pub enum OpKind {
Show 25 variants Register, NearBranch16, NearBranch32, NearBranch64, FarBranch16, FarBranch32, Immediate8, Immediate8_2nd, Immediate16, Immediate32, Immediate64, Immediate8to16, Immediate8to32, Immediate8to64, Immediate32to64, MemorySegSI, MemorySegESI, MemorySegRSI, MemorySegDI, MemorySegEDI, MemorySegRDI, MemoryESDI, MemoryESEDI, MemoryESRDI, Memory,
}
Expand description

Instruction operand kind

Variants§

§

Register

§

NearBranch16

Near 16-bit branch. This operand kind uses Instruction::near_branch16()

§

NearBranch32

Near 32-bit branch. This operand kind uses Instruction::near_branch32()

§

NearBranch64

Near 64-bit branch. This operand kind uses Instruction::near_branch64()

§

FarBranch16

Far 16-bit branch. This operand kind uses Instruction::far_branch16() and Instruction::far_branch_selector()

§

FarBranch32

Far 32-bit branch. This operand kind uses Instruction::far_branch32() and Instruction::far_branch_selector()

§

Immediate8

8-bit constant. This operand kind uses Instruction::immediate8()

§

Immediate8_2nd

8-bit constant used by the ENTER, EXTRQ, INSERTQ instructions. This operand kind uses Instruction::immediate8_2nd()

§

Immediate16

16-bit constant. This operand kind uses Instruction::immediate16()

§

Immediate32

32-bit constant. This operand kind uses Instruction::immediate32()

§

Immediate64

64-bit constant. This operand kind uses Instruction::immediate64()

§

Immediate8to16

An 8-bit value sign extended to 16 bits. This operand kind uses Instruction::immediate8to16()

§

Immediate8to32

An 8-bit value sign extended to 32 bits. This operand kind uses Instruction::immediate8to32()

§

Immediate8to64

An 8-bit value sign extended to 64 bits. This operand kind uses Instruction::immediate8to64()

§

Immediate32to64

A 32-bit value sign extended to 64 bits. This operand kind uses Instruction::immediate32to64()

§

MemorySegSI

§

MemorySegESI

§

MemorySegRSI

§

MemorySegDI

§

MemorySegEDI

§

MemorySegRDI

§

MemoryESDI

ES:[DI]. This operand kind uses Instruction::memory_size()

§

MemoryESEDI

ES:[EDI]. This operand kind uses Instruction::memory_size()

§

MemoryESRDI

ES:[RDI]. This operand kind uses Instruction::memory_size()

§

Memory

Implementations§

source§

impl OpKind

source

pub fn values( ) -> impl Iterator<Item = OpKind> + DoubleEndedIterator + ExactSizeIterator + FusedIterator

Iterates over all OpKind enum values

Trait Implementations§

source§

impl Clone for OpKind

source§

fn clone(&self) -> OpKind

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for OpKind

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for OpKind

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Hash for OpKind

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given [Hasher]. Read more
1.3.0§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given [Hasher]. Read more
source§

impl Ord for OpKind

source§

fn cmp(&self, other: &OpKind) -> Ordering

This method returns an [Ordering] between self and other. Read more
1.21.0§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<OpKind> for OpKind

source§

fn eq(&self, other: &OpKind) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<OpKind> for OpKind

source§

fn partial_cmp(&self, other: &OpKind) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<usize> for OpKind

§

type Error = IcedError

The type returned in the event of a conversion error.
source§

fn try_from(value: usize) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for OpKind

source§

impl Eq for OpKind

source§

impl StructuralEq for OpKind

source§

impl StructuralPartialEq for OpKind

Auto Trait Implementations§

§

impl RefUnwindSafe for OpKind

§

impl Send for OpKind

§

impl Sync for OpKind

§

impl Unpin for OpKind

§

impl UnwindSafe for OpKind

Blanket Implementations§

§

impl<T> Any for Twhere T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

const: unstable§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.