pub struct Imm8Xmm(/* private fields */);
Expand description
A newtype wrapper around Imm8Reg
.
Implementations§
source§impl Imm8Xmm
impl Imm8Xmm
sourcepub fn new(imm8_reg: Imm8Reg) -> Option<Self>
pub fn new(imm8_reg: Imm8Reg) -> Option<Self>
Construct this newtype from the given Imm8Reg
, or return
None
if the Imm8Reg
is not a valid instance of this newtype.
sourcepub fn as_imm8_reg(&self) -> &Imm8Reg
pub fn as_imm8_reg(&self) -> &Imm8Reg
Borrow this newtype as its underlying Imm8Reg
.
sourcepub fn as_imm8_reg_mut(&mut self) -> &mut Imm8Reg
pub fn as_imm8_reg_mut(&mut self) -> &mut Imm8Reg
Borrow this newtype as its underlying Imm8Reg
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Imm8Xmm
impl RefUnwindSafe for Imm8Xmm
impl Send for Imm8Xmm
impl Sync for Imm8Xmm
impl Unpin for Imm8Xmm
impl UnwindSafe for Imm8Xmm
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
)