pub enum Location {
Show 39 variants
al,
ax,
eax,
rax,
rbx,
dx,
edx,
rdx,
cl,
rcx,
xmm0,
imm8,
imm16,
imm32,
imm64,
r8,
r16,
r32,
r32a,
r32b,
r64,
r64a,
r64b,
rm8,
rm16,
rm32,
rm64,
xmm1,
xmm2,
xmm3,
xmm_m16,
xmm_m32,
xmm_m64,
xmm_m128,
m8,
m16,
m32,
m64,
m128,
}
Expand description
An operand location, as expressed in Intel’s Instruction Set Reference.
Variants§
al
ax
eax
rax
rbx
dx
edx
rdx
cl
rcx
xmm0
imm8
imm16
imm32
imm64
r8
r16
r32
r32a
r32b
r64
r64a
r64b
rm8
rm16
rm32
rm64
xmm1
xmm2
xmm3
xmm_m16
xmm_m32
xmm_m64
xmm_m128
m8
m16
m32
m64
m128
Implementations§
Source§impl Location
impl Location
Sourcepub fn uses_memory(&self) -> bool
pub fn uses_memory(&self) -> bool
Return true
if the location accesses memory; false
otherwise.
Sourcepub fn uses_register(&self) -> bool
pub fn uses_register(&self) -> bool
Return true
if any of the operands accepts a register (i.e., not an
immediate); return false
otherwise.
Sourcepub fn kind(&self) -> OperandKind
pub fn kind(&self) -> OperandKind
Convert the location to an OperandKind
.
Trait Implementations§
impl Copy for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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