Struct GprMem
pub struct GprMem(/* private fields */);
Expand description
A newtype wrapper around RegMem
for general-purpose registers.
Implementations§
§impl GprMem
impl GprMem
pub fn new(rm: RegMem) -> Option<GprMem>
pub fn new(rm: RegMem) -> Option<GprMem>
Construct a RegMem
newtype from the given RegMem
, or return
None
if the RegMem
is not a valid instance of this RegMem
newtype.
pub fn unwrap_new(rm: RegMem) -> GprMem
pub fn unwrap_new(rm: RegMem) -> GprMem
Like Self::new(rm).unwrap()
but with better panic messages
in case of failure.
pub fn to_reg_mem(self) -> RegMem
pub fn to_reg_mem(self) -> RegMem
Convert this newtype into its underlying RegMem
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GprMem
impl RefUnwindSafe for GprMem
impl Send for GprMem
impl Sync for GprMem
impl Unpin for GprMem
impl UnwindSafe for GprMem
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)