Struct XmmMemAligned8
pub struct XmmMemAligned8(/* private fields */);Expand description
A newtype wrapper around RegMem for general-purpose registers.
Implementations§
§impl XmmMemAligned8
impl XmmMemAligned8
pub const SIZE_BITS: u32 = 8
pub const SIZE_BITS: u32 = 8
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<XmmMemAligned8>
pub fn new(rm: RegMem) -> Option<XmmMemAligned8>
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) -> XmmMemAligned8
pub fn unwrap_new(rm: RegMem) -> XmmMemAligned8
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§
§impl Clone for XmmMemAligned8
impl Clone for XmmMemAligned8
§fn clone(&self) -> XmmMemAligned8
fn clone(&self) -> XmmMemAligned8
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 XmmMemAligned8
impl Debug for XmmMemAligned8
§impl<'a> From<&'a XmmMemAligned8> for &'a RegMem
impl<'a> From<&'a XmmMemAligned8> for &'a RegMem
§fn from(rm: &'a XmmMemAligned8) -> &'a RegMem
fn from(rm: &'a XmmMemAligned8) -> &'a RegMem
Converts to this type from the input type.
§impl From<Xmm> for XmmMemAligned8
impl From<Xmm> for XmmMemAligned8
§fn from(r: Xmm) -> XmmMemAligned8
fn from(r: Xmm) -> XmmMemAligned8
Converts to this type from the input type.
§impl From<XmmMemAligned8> for RegMem
impl From<XmmMemAligned8> for RegMem
§fn from(rm: XmmMemAligned8) -> RegMem
fn from(rm: XmmMemAligned8) -> RegMem
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for XmmMemAligned8
impl RefUnwindSafe for XmmMemAligned8
impl Send for XmmMemAligned8
impl Sync for XmmMemAligned8
impl Unpin for XmmMemAligned8
impl UnsafeUnpin for XmmMemAligned8
impl UnwindSafe for XmmMemAligned8
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