pub enum Location {
Show 18 variants
al,
ax,
eax,
rax,
cl,
imm8,
imm16,
imm32,
r8,
r16,
r32,
r64,
xmm,
rm8,
rm16,
rm32,
rm64,
rm128,
}
Expand description
An operand location, as expressed in Intel’s Instruction Set Reference.
Variants§
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_variable_register(&self) -> bool
pub fn uses_variable_register(&self) -> bool
Return true
if the location accepts a variable register (i.e., not a
fixed register, 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