Enum yaxpeax_x86::long_mode::InnerDescription[][src]

pub enum InnerDescription {
    RexPrefix(u8),
    SegmentPrefix(Segment),
    Opcode(Opcode),
    OperandCode(OperandCodeWrapper),
    RegisterNumber(&'static stru8RegSpec),
    Misc(&'static str),
    Number(&'static stri64),
    Boundary(&'static str),
}
Expand description

the actual description for a selection of bits involved in decoding an [long_mode::Instruction].

some prefixes are only identified as an InnerDescription::Misc string, while some are full InnerDescription::SegmentPrefix(Segment). generally, strings should be considered unstable and only useful for displaying for human consumption.

Variants

RexPrefix(u8)

the literal byte read for a rex prefix, 0x4_.

Tuple Fields of RexPrefix

0: u8
SegmentPrefix(Segment)

the segment selected by a segment override prefix. this is not necessarily the actual segement used in the instruction’s memory accesses, if any are made.

Tuple Fields of SegmentPrefix

0: Segment
Opcode(Opcode)

the opcode read for this instruction. this may be reported multiple times in an instruction if multiple spans of bits are necessary to determine the opcode. it is a bug if two different Opcode are indicated by different InnerDescription::Opcode reported from decoding the same instruction. this invariant is not well-tested, and may occur in practice.

Tuple Fields of Opcode

0: Opcode
OperandCode(OperandCodeWrapper)

the operand code indicating how to read operands for this instruction. this is an internal detail of yaxpeax-x86 but is typically named in a manner that can aid understanding the decoding process. OperandCode names are unstable, and this variant is only useful for displaying for human consumption.

Tuple Fields of OperandCode

0: OperandCodeWrapper
RegisterNumber(&'static stru8RegSpec)

a decoded register: a name for the bits used to decode it, the register number those bits specify, and the fully-constructed [long_mode::RegSpec] that was decoded.

Tuple Fields of RegisterNumber

0: &'static str1: u82: RegSpec
Misc(&'static str)

a miscellaneous string describing some bits of the instruction. this may describe a prefix, internal details of a prefix, error or constraints on an opcode, operand encoding details, or other items involved in an instruction.

Tuple Fields of Misc

0: &'static str
Number(&'static stri64)

a number involved in the instruction: typically either a disaplacement or immediate. the string describes which. the i64 member is typically a sign-extended value from the appropriate original size, meaning there may be incorrect cases of a 65535u16 sign extending to -1. bug reports are highly encouraged for unexpected values.

Tuple Fields of Number

0: &'static str1: i64
Boundary(&'static str)

a boundary between two logically distinct sections of an instruction. these typically separate the leading prefix string (if any), opcode, and operands (if any). the included string describes which boundary this is. boundary names should not be considered stable, and are useful at most for displaying for human consumption.

Tuple Fields of Boundary

0: &'static str

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

Formats the value using the given formatter. Read more

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

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

Converts the given value to a String. 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.