Skip to main content

GPR

Enum GPR 

Source
#[repr(u8)]
pub enum GPR {
Show 68 variants RAX = 1, RBX = 2, RCX = 3, RDX = 4, RSI = 5, RDI = 6, RBP = 7, RSP = 8, R8 = 9, R9 = 10, R10 = 11, R11 = 12, R12 = 13, R13 = 14, R14 = 15, R15 = 16, EAX = 17, EBX = 18, ECX = 19, EDX = 20, ESI = 21, EDI = 22, EBP = 23, ESP = 24, R8D = 25, R9D = 26, R10D = 27, R11D = 28, R12D = 29, R13D = 30, R14D = 31, R15D = 32, AX = 33, BX = 34, CX = 35, DX = 36, SI = 37, DI = 38, BP = 39, SP = 40, R8W = 41, R9W = 42, R10W = 43, R11W = 44, R12W = 45, R13W = 46, R14W = 47, R15W = 48, AL = 49, BL = 50, CL = 51, DL = 52, SIL = 53, DIL = 54, BPL = 55, SPL = 56, R8B = 57, R9B = 58, R10B = 59, R11B = 60, R12B = 61, R13B = 62, R14B = 63, R15B = 64, AH = 65, BH = 66, CH = 67, DH = 68,
}
Expand description

Represents a general purpose register in the X86_64 instruction set.

Variants§

§

RAX = 1

§

RBX = 2

§

RCX = 3

§

RDX = 4

§

RSI = 5

§

RDI = 6

§

RBP = 7

§

RSP = 8

§

R8 = 9

§

R9 = 10

§

R10 = 11

§

R11 = 12

§

R12 = 13

§

R13 = 14

§

R14 = 15

§

R15 = 16

§

EAX = 17

§

EBX = 18

§

ECX = 19

§

EDX = 20

§

ESI = 21

§

EDI = 22

§

EBP = 23

§

ESP = 24

§

R8D = 25

§

R9D = 26

§

R10D = 27

§

R11D = 28

§

R12D = 29

§

R13D = 30

§

R14D = 31

§

R15D = 32

§

AX = 33

§

BX = 34

§

CX = 35

§

DX = 36

§

SI = 37

§

DI = 38

§

BP = 39

§

SP = 40

§

R8W = 41

§

R9W = 42

§

R10W = 43

§

R11W = 44

§

R12W = 45

§

R13W = 46

§

R14W = 47

§

R15W = 48

§

AL = 49

§

BL = 50

§

CL = 51

§

DL = 52

§

SIL = 53

§

DIL = 54

§

BPL = 55

§

SPL = 56

§

R8B = 57

§

R9B = 58

§

R10B = 59

§

R11B = 60

§

R12B = 61

§

R13B = 62

§

R14B = 63

§

R15B = 64

§

AH = 65

§

BH = 66

§

CH = 67

§

DH = 68

Implementations§

Source§

impl GPR

Source

pub const fn equals(self, other: Self) -> bool

Compares two GPR values for equality.

Source

pub const fn kind(self) -> GPRKind

Represents the kind of the GPR.

Source

pub const fn size(self) -> Size

Represents the size of the GPR.

Trait Implementations§

Source§

impl Clone for GPR

Source§

fn clone(&self) -> GPR

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for GPR

Source§

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

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

impl From<GPR> for GPROrMemory

Source§

fn from(gpr: GPR) -> Self

Converts to this type from the input type.
Source§

impl Hash for GPR

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 GPR

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 Copy for GPR

Source§

impl Eq for GPR

Source§

impl StructuralPartialEq for GPR

Auto Trait Implementations§

§

impl Freeze for GPR

§

impl RefUnwindSafe for GPR

§

impl Send for GPR

§

impl Sync for GPR

§

impl Unpin for GPR

§

impl UnsafeUnpin for GPR

§

impl UnwindSafe for GPR

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, 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.