pub type WritableGpr = Writable<Gpr>;
Expand description

Writable Gpr.

Aliased Type§

struct WritableGpr { /* private fields */ }

Implementations§

source§

impl<T: Clone + Copy + Debug + PartialEq + Eq + PartialOrd + Ord + Hash> Writable<T>

source

pub fn from_reg(reg: T) -> Writable<T>

Explicitly construct a Writable<T> from a T. As noted in the documentation for Writable, this is not hidden or disallowed from the outside; anyone can perform the “cast”; but it is explicit so that we can audit the use sites.

source

pub fn to_reg(self) -> T

Get the underlying register, which can be read.

source

pub fn map<U, F>(self, f: F) -> Writable<U>where U: Clone + Copy + Debug + PartialEq + Eq + PartialOrd + Ord + Hash, F: Fn(T) -> U,

Map the underlying register to another value or type.

Trait Implementations§

source§

impl<T: Clone + Clone + Copy + Debug + PartialEq + Eq + PartialOrd + Ord + Hash> Clone for Writable<T>

source§

fn clone(&self) -> Writable<T>

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
source§

impl<T: Debug + Clone + Copy + Debug + PartialEq + Eq + PartialOrd + Ord + Hash> Debug for Writable<T>

source§

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

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

impl FromWritableReg for WritableGpr

source§

fn from_writable_reg(w: Writable<Reg>) -> Option<Self>

Convert Writable<Reg> to Writable{Xmm,Gpr}.
source§

impl<T: Hash + Clone + Copy + Debug + PartialEq + Eq + PartialOrd + Ord + Hash> Hash for Writable<T>

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<T: Ord + Clone + Copy + Debug + PartialEq + Eq + PartialOrd + Ord + Hash> Ord for Writable<T>

source§

fn cmp(&self, other: &Writable<T>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl<T: PartialEq + Clone + Copy + Debug + PartialEq + Eq + PartialOrd + Ord + Hash> PartialEq<Writable<T>> for Writable<T>

source§

fn eq(&self, other: &Writable<T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T: PartialOrd + Clone + Copy + Debug + PartialEq + Eq + PartialOrd + Ord + Hash> PartialOrd<Writable<T>> for Writable<T>

source§

fn partial_cmp(&self, other: &Writable<T>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl ToWritableReg for WritableGpr

source§

fn to_writable_reg(&self) -> Writable<Reg>

Convert Writable{Xmm,Gpr} to Writable<Reg>.
source§

impl<T: Copy + Clone + Copy + Debug + PartialEq + Eq + PartialOrd + Ord + Hash> Copy for Writable<T>

source§

impl<T: Eq + Clone + Copy + Debug + PartialEq + Eq + PartialOrd + Ord + Hash> Eq for Writable<T>

source§

impl<T: Clone + Copy + Debug + PartialEq + Eq + PartialOrd + Ord + Hash> StructuralEq for Writable<T>

source§

impl<T: Clone + Copy + Debug + PartialEq + Eq + PartialOrd + Ord + Hash> StructuralPartialEq for Writable<T>