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§
Source§impl<T, B> IoLoc<T> for RelativeRegisterLoc<T, B>
impl<T, B> IoLoc<T> for RelativeRegisterLoc<T, B>
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
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more