pub struct XmmMemAlignedImm(/* private fields */);
Available on crate feature
x86
only.Expand description
A newtype wrapper around RegMemImm
.
Implementations§
Source§impl XmmMemAlignedImm
impl XmmMemAlignedImm
Sourcepub fn new(rmi: RegMemImm) -> Option<Self>
pub fn new(rmi: RegMemImm) -> Option<Self>
Construct this newtype from the given RegMemImm
, or return
None
if the RegMemImm
is not a valid instance of this
newtype.
Sourcepub fn unwrap_new(rmi: RegMemImm) -> Self
pub fn unwrap_new(rmi: RegMemImm) -> Self
Like Self::new(rmi).unwrap()
but with better panic
messages in case of failure.
Sourcepub fn to_reg_mem_imm(self) -> RegMemImm
pub fn to_reg_mem_imm(self) -> RegMemImm
Convert this newtype into its underlying RegMemImm
.
Trait Implementations§
Source§impl Clone for XmmMemAlignedImm
impl Clone for XmmMemAlignedImm
Source§fn clone(&self) -> XmmMemAlignedImm
fn clone(&self) -> XmmMemAlignedImm
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 moreSource§impl Debug for XmmMemAlignedImm
impl Debug for XmmMemAlignedImm
Source§impl<'a> From<&'a XmmMemAlignedImm> for &'a RegMemImm
impl<'a> From<&'a XmmMemAlignedImm> for &'a RegMemImm
Source§fn from(rmi: &'a XmmMemAlignedImm) -> &'a RegMemImm
fn from(rmi: &'a XmmMemAlignedImm) -> &'a RegMemImm
Converts to this type from the input type.
Source§impl From<Xmm> for XmmMemAlignedImm
impl From<Xmm> for XmmMemAlignedImm
Source§impl From<XmmMemAlignedImm> for RegMemImm
impl From<XmmMemAlignedImm> for RegMemImm
Source§fn from(rmi: XmmMemAlignedImm) -> RegMemImm
fn from(rmi: XmmMemAlignedImm) -> RegMemImm
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for XmmMemAlignedImm
impl RefUnwindSafe for XmmMemAlignedImm
impl Send for XmmMemAlignedImm
impl Sync for XmmMemAlignedImm
impl Unpin for XmmMemAlignedImm
impl UnwindSafe for XmmMemAlignedImm
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