pub struct Writable<T> { /* private fields */ }
Expand description
A type wrapper that indicates a register type is writable. The
underlying register can be extracted, and the type wrapper can be
built using an arbitrary register. Hence, this type-level wrapper
is not strictly a guarantee. However, “casting” to a writable
register is an explicit operation for which we can
audit. Ordinarily, internal APIs in the compiler backend should
take a Writable<Reg>
whenever the register is written, and the
usual, frictionless way to get one of these is to allocate a new
temporary.
Implementations§
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Writable<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Writable<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<T: Ord> Ord for Writable<T>
impl<T: Ord> Ord for Writable<T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd> PartialOrd for Writable<T>
impl<T: PartialOrd> PartialOrd for Writable<T>
impl<T: Copy> Copy for Writable<T>
impl<T: Eq> Eq for Writable<T>
impl<T> StructuralPartialEq for Writable<T>
Auto Trait Implementations§
impl<T> Freeze for Writable<T>where
T: Freeze,
impl<T> RefUnwindSafe for Writable<T>where
T: RefUnwindSafe,
impl<T> Send for Writable<T>where
T: Send,
impl<T> Sync for Writable<T>where
T: Sync,
impl<T> Unpin for Writable<T>where
T: Unpin,
impl<T> UnwindSafe for Writable<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more