pub struct GprMemImm(/* private fields */);
Expand description
A newtype wrapper around RegMemImm
.
Implementations§
Source§impl GprMemImm
impl GprMemImm
Sourcepub fn new(rmi: RegMemImm) -> Option<Self>
pub fn new(rmi: RegMemImm) -> Option<Self>
Construct this newtype from the given RegMemImm
, or return
None
if the RegMemImm
is not a valid instance of this
newtype.
Sourcepub fn unwrap_new(rmi: RegMemImm) -> Self
pub fn unwrap_new(rmi: RegMemImm) -> Self
Like Self::new(rmi).unwrap()
but with better panic
messages in case of failure.
Sourcepub fn to_reg_mem_imm(self) -> RegMemImm
pub fn to_reg_mem_imm(self) -> RegMemImm
Convert this newtype into its underlying RegMemImm
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GprMemImm
impl RefUnwindSafe for GprMemImm
impl Send for GprMemImm
impl Sync for GprMemImm
impl Unpin for GprMemImm
impl UnwindSafe for GprMemImm
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
)