logo
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

Iterates over all OpKind enum values

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Serialize this value into the given Serde serializer. Read more
The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.