Struct Xmm
pub struct Xmm(/* private fields */);
Expand description
A newtype wrapper around Reg
.
Implementations§
§impl Xmm
impl Xmm
pub fn new(reg: Reg) -> Option<Xmm>
pub fn new(reg: Reg) -> Option<Xmm>
Create this newtype from the given register, or return None
if the register
is not a valid instance of this newtype.
pub fn unwrap_new(reg: Reg) -> Xmm
pub fn unwrap_new(reg: Reg) -> Xmm
Like Self::new(r).unwrap()
but with a better panic message on
failure.
pub fn to_reg(self) -> Reg
pub fn to_reg(self) -> Reg
Get this newtype’s underlying Reg
.
Trait Implementations§
§impl AsMut<Reg> for Xmm
impl AsMut<Reg> for Xmm
If you know what you’re doing, you can explicitly mutably borrow the
underlying Reg
. Don’t make it point to the wrong type of register
please.
§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<Xmm> for XmmMemAlignedImm
impl From<Xmm> for XmmMemAlignedImm
§fn from(r: Xmm) -> XmmMemAlignedImm
fn from(r: Xmm) -> XmmMemAlignedImm
Converts to this type from the input type.
§impl Ord for Xmm
impl Ord for Xmm
§impl PartialOrd for Xmm
impl PartialOrd for Xmm
impl Copy for Xmm
impl Eq for Xmm
impl StructuralPartialEq for Xmm
Auto Trait Implementations§
impl Freeze for Xmm
impl RefUnwindSafe for Xmm
impl Send for Xmm
impl Sync for Xmm
impl Unpin for Xmm
impl UnwindSafe for Xmm
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
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.