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,
§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.§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