Enum x86Reg

Source
#[repr(C)]
pub enum x86Reg {
Show 52 variants RIP = 0, RFLAGS = 1, RAX = 2, RCX = 3, RDX = 4, RBX = 5, RSI = 6, RDI = 7, RSP = 8, RBP = 9, R8 = 10, R9 = 11, R10 = 12, R11 = 13, R12 = 14, R13 = 15, R14 = 16, R15 = 17, CS = 18, SS = 19, DS = 20, ES = 21, FS = 22, GS = 23, IDT_BASE = 24, IDT_LIMIT = 25, GDT_BASE = 26, GDT_LIMIT = 27, LDTR = 28, LDT_BASE = 29, LDT_LIMIT = 30, LDT_AR = 31, TR = 32, TSS_BASE = 33, TSS_LIMIT = 34, TSS_AR = 35, CR0 = 36, CR1 = 37, CR2 = 38, CR3 = 39, CR4 = 40, DR0 = 41, DR1 = 42, DR2 = 43, DR3 = 44, DR4 = 45, DR5 = 46, DR6 = 47, DR7 = 48, TPR = 49, XCR0 = 50, REGISTERS_MAX = 51,
}
Expand description

x86 architectural register

Variants§

§

RIP = 0

§

RFLAGS = 1

§

RAX = 2

§

RCX = 3

§

RDX = 4

§

RBX = 5

§

RSI = 6

§

RDI = 7

§

RSP = 8

§

RBP = 9

§

R8 = 10

§

R9 = 11

§

R10 = 12

§

R11 = 13

§

R12 = 14

§

R13 = 15

§

R14 = 16

§

R15 = 17

§

CS = 18

§

SS = 19

§

DS = 20

§

ES = 21

§

FS = 22

§

GS = 23

§

IDT_BASE = 24

§

IDT_LIMIT = 25

§

GDT_BASE = 26

§

GDT_LIMIT = 27

§

LDTR = 28

§

LDT_BASE = 29

§

LDT_LIMIT = 30

§

LDT_AR = 31

§

TR = 32

§

TSS_BASE = 33

§

TSS_LIMIT = 34

§

TSS_AR = 35

§

CR0 = 36

§

CR1 = 37

§

CR2 = 38

§

CR3 = 39

§

CR4 = 40

§

DR0 = 41

§

DR1 = 42

§

DR2 = 43

§

DR3 = 44

§

DR4 = 45

§

DR5 = 46

§

DR6 = 47

§

DR7 = 48

§

TPR = 49

§

XCR0 = 50

§

REGISTERS_MAX = 51

Trait Implementations§

Source§

impl Clone for x86Reg

Source§

fn clone(&self) -> x86Reg

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl Freeze for x86Reg

§

impl RefUnwindSafe for x86Reg

§

impl Send for x86Reg

§

impl Sync for x86Reg

§

impl Unpin for x86Reg

§

impl UnwindSafe for x86Reg

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

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

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

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.