pub enum Reg {
Show 16 variants
rax = 0,
rcx = 1,
rdx = 2,
rbx = 3,
rsp = 4,
rbp = 5,
rsi = 6,
rdi = 7,
r8 = 8,
r9 = 9,
r10 = 10,
r11 = 11,
r12 = 12,
r13 = 13,
r14 = 14,
r15 = 15,
}
Variants§
rax = 0
rcx = 1
rdx = 2
rbx = 3
rsp = 4
rbp = 5
rsi = 6
rdi = 7
r8 = 8
r9 = 9
r10 = 10
r11 = 11
r12 = 12
r13 = 13
r14 = 14
r15 = 15
Implementations§
Source§impl Reg
impl Reg
pub const fn is_reg_preserved(self) -> bool
pub const fn needs_rex(self) -> bool
pub const fn modrm_rm_bits(self) -> u8
pub const fn modrm_reg_bits(self) -> u8
pub const fn rex_bit(self) -> u8
pub const fn rex_modrm_reg(self) -> u8
pub const fn name_from(self, size: RegSize) -> &'static str
pub const fn name_from_size(self, kind: Size) -> &'static str
Trait Implementations§
impl Copy for Reg
impl Eq for Reg
impl IntoMemOp for Reg
impl StructuralPartialEq for Reg
Auto Trait Implementations§
impl Freeze for Reg
impl RefUnwindSafe for Reg
impl Send for Reg
impl Sync for Reg
impl Unpin for Reg
impl UnwindSafe for Reg
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