pub struct XmmMemAligned128(/* private fields */);Available on crate feature
x86 only.Expand description
A newtype wrapper around RegMem for general-purpose registers.
Implementations§
Source§impl XmmMemAligned128
impl XmmMemAligned128
Sourcepub const SIZE_BITS: u32 = 128
pub const SIZE_BITS: u32 = 128
The bit width of the value this operand holds. This is
a type-level distinction only; the underlying RegMem
does not record the width.
Sourcepub fn new(rm: RegMem) -> Option<Self>
pub fn new(rm: RegMem) -> Option<Self>
Construct a RegMem newtype from the given RegMem, or return
None if the RegMem is not a valid instance of this RegMem
newtype.
Sourcepub fn unwrap_new(rm: RegMem) -> Self
pub fn unwrap_new(rm: RegMem) -> Self
Like Self::new(rm).unwrap() but with better panic messages
in case of failure.
Sourcepub fn to_reg_mem(self) -> RegMem
pub fn to_reg_mem(self) -> RegMem
Convert this newtype into its underlying RegMem.
Trait Implementations§
Source§impl Clone for XmmMemAligned128
impl Clone for XmmMemAligned128
Source§fn clone(&self) -> XmmMemAligned128
fn clone(&self) -> XmmMemAligned128
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 moreSource§impl Debug for XmmMemAligned128
impl Debug for XmmMemAligned128
Source§impl<'a> From<&'a XmmMemAligned128> for &'a RegMem
impl<'a> From<&'a XmmMemAligned128> for &'a RegMem
Source§fn from(rm: &'a XmmMemAligned128) -> &'a RegMem
fn from(rm: &'a XmmMemAligned128) -> &'a RegMem
Converts to this type from the input type.
Source§impl From<Xmm> for XmmMemAligned128
impl From<Xmm> for XmmMemAligned128
Source§impl From<XmmMemAligned128> for RegMem
impl From<XmmMemAligned128> for RegMem
Source§fn from(rm: XmmMemAligned128) -> Self
fn from(rm: XmmMemAligned128) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for XmmMemAligned128
impl RefUnwindSafe for XmmMemAligned128
impl Send for XmmMemAligned128
impl Sync for XmmMemAligned128
impl Unpin for XmmMemAligned128
impl UnsafeUnpin for XmmMemAligned128
impl UnwindSafe for XmmMemAligned128
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