Skip to main content

Register

Enum Register 

Source
pub enum Register {
Show 72 variants AL, CL, DL, BL, AH, CH, DH, BH, AX, CX, DX, BX, SP, BP, SI, DI, EAX, ECX, EDX, EBX, ESP, EBP, ESI, EDI, RAX, RCX, RDX, RBX, RSP, RBP, RSI, RDI, R8, R9, R10, R11, R12, R13, R14, R15, R8B, R9B, R10B, R11B, R12B, R13B, R14B, R15B, R8W, R9W, R10W, R11W, R12W, R13W, R14W, R15W, R8D, R9D, R10D, R11D, R12D, R13D, R14D, R15D, XMM0, XMM1, XMM2, XMM3, XMM4, XMM5, XMM6, XMM7,
}
Expand description

寄存器枚举,表示x86_64架构中的所有寄存器

Variants§

§

AL

低 8 位累加器寄存器 (AL)

§

CL

低 8 位计数器寄存器 (CL)

§

DL

低 8 位数据寄存器 (DL)

§

BL

低 8 位基址寄存器 (BL)

§

AH

高 8 位累加器寄存器 (AH)

§

CH

高 8 位计数器寄存器 (CH)

§

DH

高 8 位数据寄存器 (DH)

§

BH

高 8 位基址寄存器 (BH)

§

AX

16 位累加器寄存器 (AX)

§

CX

16 位计数器寄存器 (CX)

§

DX

16 位数据寄存器 (DX)

§

BX

16 位基址寄存器 (BX)

§

SP

16 位栈指针寄存器 (SP)

§

BP

16 位基址指针寄存器 (BP)

§

SI

16 位源变址寄存器 (SI)

§

DI

16 位目的变址寄存器 (DI)

§

EAX

32 位扩展累加器寄存器 (EAX)

§

ECX

32 位扩展计数器寄存器 (ECX)

§

EDX

32 位扩展数据寄存器 (EDX)

§

EBX

32 位扩展基址寄存器 (EBX)

§

ESP

32 位扩展栈指针寄存器 (ESP)

§

EBP

32 位扩展基址指针寄存器 (EBP)

§

ESI

32 位扩展源变址寄存器 (ESI)

§

EDI

32 位扩展目的变址寄存器 (EDI)

§

RAX

64 位扩展累加器寄存器 (RAX)

§

RCX

64 位扩展计数器寄存器 (RCX)

§

RDX

64 位扩展数据寄存器 (RDX)

§

RBX

64 位扩展基址寄存器 (RBX)

§

RSP

64 位扩展栈指针寄存器 (RSP)

§

RBP

64 位扩展基址指针寄存器 (RBP)

§

RSI

64 位扩展源变址寄存器 (RSI)

§

RDI

64 位扩展目的变址寄存器 (RDI)

§

R8

64 位扩展寄存器 R8

§

R9

64 位扩展寄存器 R9

§

R10

64 位扩展寄存器 R10

§

R11

64 位扩展寄存器 R11

§

R12

64 位扩展寄存器 R12

§

R13

64 位扩展寄存器 R13

§

R14

64 位扩展寄存器 R14

§

R15

64 位扩展寄存器 R15

§

R8B

8 位扩展寄存器 R8 低字节

§

R9B

8 位扩展寄存器 R9 低字节

§

R10B

8 位扩展寄存器 R10 低字节

§

R11B

8 位扩展寄存器 R11 低字节

§

R12B

8 位扩展寄存器 R12 低字节

§

R13B

8 位扩展寄存器 R13 低字节

§

R14B

8 位扩展寄存器 R14 低字节

§

R15B

8 位扩展寄存器 R15 低字节

§

R8W

16 位扩展寄存器 R8

§

R9W

16 位扩展寄存器 R9

§

R10W

16 位扩展寄存器 R10

§

R11W

16 位扩展寄存器 R11

§

R12W

16 位扩展寄存器 R12

§

R13W

16 位扩展寄存器 R13

§

R14W

16 位扩展寄存器 R14

§

R15W

16 位扩展寄存器 R15

§

R8D

32 位扩展寄存器 R8

§

R9D

32 位扩展寄存器 R9

§

R10D

32 位扩展寄存器 R10

§

R11D

32 位扩展寄存器 R11

§

R12D

32 位扩展寄存器 R12

§

R13D

32 位扩展寄存器 R13

§

R14D

32 位扩展寄存器 R14

§

R15D

32 位扩展寄存器 R15

§

XMM0

SSE 寄存器 XMM0

§

XMM1

SSE 寄存器 XMM1

§

XMM2

SSE 寄存器 XMM2

§

XMM3

SSE 寄存器 XMM3

§

XMM4

SSE 寄存器 XMM4

§

XMM5

SSE 寄存器 XMM5

§

XMM6

SSE 寄存器 XMM6

§

XMM7

SSE 寄存器 XMM7

Trait Implementations§

Source§

impl Clone for Register

Source§

fn clone(&self) -> Register

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Register

Source§

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

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

impl<'de> Deserialize<'de> for Register

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Hash for Register

Source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

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 PartialEq for Register

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Register

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for Register

Source§

impl Eq for Register

Source§

impl StructuralPartialEq for Register

Auto Trait Implementations§

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,