pub struct XmmMem(/* private fields */);
Available on crate feature
x86
only.Expand description
A newtype wrapper around RegMem
for general-purpose registers.
Implementations§
Source§impl XmmMem
impl XmmMem
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§
Auto Trait Implementations§
impl Freeze for XmmMem
impl RefUnwindSafe for XmmMem
impl Send for XmmMem
impl Sync for XmmMem
impl Unpin for XmmMem
impl UnwindSafe for XmmMem
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