Struct XmmMem16
pub struct XmmMem16(/* private fields */);Expand description
A newtype wrapper around RegMem for general-purpose registers.
Implementations§
§impl XmmMem16
impl XmmMem16
pub const SIZE_BITS: u32 = 16
pub const SIZE_BITS: u32 = 16
The bit width of the value this operand holds. This is
a type-level distinction only; the underlying RegMem
does not record the width.
pub fn new(rm: RegMem) -> Option<XmmMem16>
pub fn new(rm: RegMem) -> Option<XmmMem16>
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) -> XmmMem16
pub fn unwrap_new(rm: RegMem) -> XmmMem16
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 XmmMem16
impl RefUnwindSafe for XmmMem16
impl Send for XmmMem16
impl Sync for XmmMem16
impl Unpin for XmmMem16
impl UnsafeUnpin for XmmMem16
impl UnwindSafe for XmmMem16
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