Struct yaxpeax_x86::long_mode::RegSpec [−][src]
pub struct RegSpec { /* fields omitted */ }
Expand description
an x86_64
register, including its number and type. if fmt
is enabled, name too.
use yaxpeax_x86::long_mode::{RegSpec, register_class};
assert_eq!(RegSpec::ecx().num(), 1);
assert_eq!(RegSpec::ecx().class(), register_class::D);
some registers have classes of their own, and only one member: rip
, eip
, rflags
, and
eflags
.
Implementations
the register rip
. this register is in the class rip
, which contains only it.
the number of this register in its RegisterClass
.
for many registers this is a number in the name, but for registers harkening back to
x86_32
, the first eight registers are rax
, rcx
, rdx
, rbx
, rsp
, rbp
, rsi
,
and rdi
(or eXX
for the 32-bit forms, XX
for 16-bit forms).
the class of register this register is in.
this corresponds to the register’s size, but is by the register’s usage in the instruction
set; rax
and mm0
are the same size, but different classes (Q
(word) and MM
(mmx)
respectively).
return a human-friendly name for this register. the returned name is the same as would be used to render this register in an instruction.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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
Auto Trait Implementations
impl RefUnwindSafe for RegSpec
impl UnwindSafe for RegSpec
Blanket Implementations
Mutably borrows from an owned value. Read more