Struct GprMemImm32
pub struct GprMemImm32(/* private fields */);Expand description
A newtype wrapper around RegMemImm.
Implementations§
§impl GprMemImm32
impl GprMemImm32
pub const SIZE_BITS: u32 = 32
pub const SIZE_BITS: u32 = 32
The bit width of the value this operand holds. This is
a type-level distinction only; the underlying
RegMemImm does not record the width.
pub fn new(rmi: RegMemImm) -> Option<GprMemImm32>
pub fn new(rmi: RegMemImm) -> Option<GprMemImm32>
Construct this newtype from the given RegMemImm, or return
None if the RegMemImm is not a valid instance of this
newtype.
pub fn unwrap_new(rmi: RegMemImm) -> GprMemImm32
pub fn unwrap_new(rmi: RegMemImm) -> GprMemImm32
Like Self::new(rmi).unwrap() but with better panic
messages in case of failure.
pub fn to_reg_mem_imm(self) -> RegMemImm
pub fn to_reg_mem_imm(self) -> RegMemImm
Convert this newtype into its underlying RegMemImm.
Trait Implementations§
§impl Clone for GprMemImm32
impl Clone for GprMemImm32
§fn clone(&self) -> GprMemImm32
fn clone(&self) -> GprMemImm32
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for GprMemImm32
impl Debug for GprMemImm32
§impl<'a> From<&'a GprMemImm32> for &'a RegMemImm
impl<'a> From<&'a GprMemImm32> for &'a RegMemImm
§fn from(rmi: &'a GprMemImm32) -> &'a RegMemImm
fn from(rmi: &'a GprMemImm32) -> &'a RegMemImm
Converts to this type from the input type.
§impl From<Gpr> for GprMemImm32
impl From<Gpr> for GprMemImm32
§fn from(r: Gpr) -> GprMemImm32
fn from(r: Gpr) -> GprMemImm32
Converts to this type from the input type.
§impl From<GprMemImm32> for RegMemImm
impl From<GprMemImm32> for RegMemImm
§fn from(rmi: GprMemImm32) -> RegMemImm
fn from(rmi: GprMemImm32) -> RegMemImm
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GprMemImm32
impl RefUnwindSafe for GprMemImm32
impl Send for GprMemImm32
impl Sync for GprMemImm32
impl Unpin for GprMemImm32
impl UnsafeUnpin for GprMemImm32
impl UnwindSafe for GprMemImm32
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