Struct GPR

Source
pub struct GPR { /* private fields */ }
Expand description

Represents an x86_64 general purpose register.

Implementations§

Source§

impl GPR

Source

pub const RAX: Self

Source

pub const RCX: Self

Source

pub const RDX: Self

Source

pub const RBX: Self

Source

pub const RSP: Self

Source

pub const RBP: Self

Source

pub const RSI: Self

Source

pub const RDI: Self

Source

pub const R8: Self

Source

pub const R9: Self

Source

pub const R10: Self

Source

pub const R11: Self

Source

pub const R12: Self

Source

pub const R13: Self

Source

pub const R14: Self

Source

pub const R15: Self

Source

pub const EAX: Self

Source

pub const ECX: Self

Source

pub const EDX: Self

Source

pub const EBX: Self

Source

pub const ESP: Self

Source

pub const EBP: Self

Source

pub const ESI: Self

Source

pub const EDI: Self

Source

pub const R8D: Self

Source

pub const R9D: Self

Source

pub const R10D: Self

Source

pub const R11D: Self

Source

pub const R12D: Self

Source

pub const R13D: Self

Source

pub const R14D: Self

Source

pub const R15D: Self

Source

pub const AX: Self

Source

pub const CX: Self

Source

pub const DX: Self

Source

pub const BX: Self

Source

pub const SP: Self

Source

pub const BP: Self

Source

pub const SI: Self

Source

pub const DI: Self

Source

pub const R8W: Self

Source

pub const R9W: Self

Source

pub const R10W: Self

Source

pub const R11W: Self

Source

pub const R12W: Self

Source

pub const R13W: Self

Source

pub const R14W: Self

Source

pub const R15W: Self

Source

pub const AL: Self

Source

pub const CL: Self

Source

pub const DL: Self

Source

pub const BL: Self

Source

pub const SPL: Self

Source

pub const BPL: Self

Source

pub const SIL: Self

Source

pub const DIL: Self

Source

pub const R8B: Self

Source

pub const R9B: Self

Source

pub const R10B: Self

Source

pub const R11B: Self

Source

pub const R12B: Self

Source

pub const R13B: Self

Source

pub const R14B: Self

Source

pub const R15B: Self

Source

pub const AH: Self

Source

pub const CH: Self

Source

pub const DH: Self

Source

pub const BH: Self

Source

pub fn new(kind: GPRKind, index: u8) -> Result<Self, NewGPRError>

Source

pub fn kind(self) -> GPRKind

Source

pub fn size(self) -> Size

Trait Implementations§

Source§

impl Clone for GPR

Source§

fn clone(&self) -> GPR

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

const 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 GPR

Source§

fn from(gpr: GPR) -> Self

Converts to this type from the input type.
Source§

impl From<GPR> for GPR

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 · Source§

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