pub struct RelativeRegisterLoc<T: WithBase, B: ?Sized>(/* private fields */);Expand description
Location of a relative register.
This can either be an immediately accessible regular RelativeRegister, or a
RelativeRegisterArray that needs one additional resolution through
RelativeRegisterLoc::at.
Implementations§
Source§impl<T, B> RelativeRegisterLoc<T, B>
impl<T, B> RelativeRegisterLoc<T, B>
Source§impl<T, B> RelativeRegisterLoc<T, B>
Methods exclusive to RelativeRegisterLocs created with a RelativeRegisterArray.
impl<T, B> RelativeRegisterLoc<T, B>
Methods exclusive to RelativeRegisterLocs created with a RelativeRegisterArray.
Sourcepub fn at(self, idx: usize) -> RelativeRegisterArrayLoc<T, B>
pub fn at(self, idx: usize) -> RelativeRegisterArrayLoc<T, B>
Returns the location of the register at position idx, with build-time validation.
Sourcepub fn try_at(self, idx: usize) -> Option<RelativeRegisterArrayLoc<T, B>>
pub fn try_at(self, idx: usize) -> Option<RelativeRegisterArrayLoc<T, B>>
Returns the location of the register at position idx, with runtime validation.
Trait Implementations§
Auto Trait Implementations§
impl<T, B> Freeze for RelativeRegisterLoc<T, B>where
B: ?Sized,
impl<T, B> RefUnwindSafe for RelativeRegisterLoc<T, B>
impl<T, B> Send for RelativeRegisterLoc<T, B>
impl<T, B> Sync for RelativeRegisterLoc<T, B>
impl<T, B> Unpin for RelativeRegisterLoc<T, B>
impl<T, B> UnsafeUnpin for RelativeRegisterLoc<T, B>where
B: ?Sized,
impl<T, B> UnwindSafe for RelativeRegisterLoc<T, B>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
Source§fn into_safe_cast(self) -> T
fn into_safe_cast(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.Source§impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
Source§fn into_safe_cast_arch(self) -> T
fn into_safe_cast_arch(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.