Struct Imm8Gpr
pub struct Imm8Gpr(/* private fields */);
Expand description
A newtype wrapper around Imm8Reg
.
Implementations§
§impl Imm8Gpr
impl Imm8Gpr
pub fn new(imm8_reg: Imm8Reg) -> Option<Imm8Gpr>
pub fn new(imm8_reg: Imm8Reg) -> Option<Imm8Gpr>
Construct this newtype from the given Imm8Reg
, or return
None
if the Imm8Reg
is not a valid instance of this newtype.
pub fn unwrap_new(imm8_reg: Imm8Reg) -> Imm8Gpr
pub fn unwrap_new(imm8_reg: Imm8Reg) -> Imm8Gpr
Like Self::new(imm8_reg).unwrap()
but with better panic
messages on failure.
pub fn as_imm8_reg(&self) -> &Imm8Reg
pub fn as_imm8_reg(&self) -> &Imm8Reg
Borrow this newtype as its underlying Imm8Reg
.
pub 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 Imm8Gpr
impl RefUnwindSafe for Imm8Gpr
impl Send for Imm8Gpr
impl Sync for Imm8Gpr
impl Unpin for Imm8Gpr
impl UnwindSafe for Imm8Gpr
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