pub struct ValueRegs<R: Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> { /* private fields */ }
Expand description
Location at which a Value
is stored in register(s): the value is located
in one or more registers, depending on its width. A value may be stored in
more than one register if the machine has no registers wide enough
otherwise: for example, on a 32-bit architecture, we may store I64
values
in two registers, and I128
values in four.
By convention, the register parts are kept in machine-endian order here.
N.B.: we cap the capacity of this at four (when any 32-bit target is
enabled) or two (otherwise), and we use special in-band sentinal Reg
values (Reg::invalid()
) to avoid the need to carry a separate length. This
allows the struct to be Copy
(no heap or drop overhead) and be only 16 or
8 bytes, which is important for compiler performance.
Implementations
sourceimpl<R: Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> ValueRegs<R>
impl<R: Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> ValueRegs<R>
sourcepub fn is_invalid(self) -> bool
pub fn is_invalid(self) -> bool
Is this Value-to-Reg mapping invalid?
sourceimpl<R: Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> ValueRegs<R>
impl<R: Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> ValueRegs<R>
Trait Implementations
sourceimpl<R: Clone + Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> Clone for ValueRegs<R>
impl<R: Clone + Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> Clone for ValueRegs<R>
sourceimpl<R: Debug + Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> Debug for ValueRegs<R>
impl<R: Debug + Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> Debug for ValueRegs<R>
sourceimpl<R: PartialEq + Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> PartialEq<ValueRegs<R>> for ValueRegs<R>
impl<R: PartialEq + Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> PartialEq<ValueRegs<R>> for ValueRegs<R>
impl<R: Copy + Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> Copy for ValueRegs<R>
impl<R: Eq + Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> Eq for ValueRegs<R>
impl<R: Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> StructuralEq for ValueRegs<R>
impl<R: Clone + Copy + Debug + PartialEq + Eq + InvalidSentinel> StructuralPartialEq for ValueRegs<R>
Auto Trait Implementations
impl<R> RefUnwindSafe for ValueRegs<R> where
R: RefUnwindSafe,
impl<R> Send for ValueRegs<R> where
R: Send,
impl<R> Sync for ValueRegs<R> where
R: Sync,
impl<R> Unpin for ValueRegs<R> where
R: Unpin,
impl<R> UnwindSafe for ValueRegs<R> where
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more