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