pub enum OpInfo {
None,
Reg(OpReg),
Mem(OpMem),
Imm(u64),
Offs(u64),
Addr(OpAddr),
Const(u64),
Bank,
}
Expand description
Extended operand information, based on the actual type of the operand.
Variants§
None
Reg(OpReg)
The operand is a register.
Mem(OpMem)
The operand is located in memory.
Imm(u64)
The operand is an immediate.
Offs(u64)
The operand is a relative offset.
Addr(OpAddr)
The operand is an absolute address, in the form seg:offset
.
Const(u64)
The operand is an implicit constant.
Bank
An entire bank/set of registers are being accessed. Used in PUSHA
/POPA
/XSAVE
/LOADALL
.
Implementations§
source§impl OpInfo
impl OpInfo
sourcepub fn as_imm(&self) -> Option<u64>
pub fn as_imm(&self) -> Option<u64>
Returns the associated immediate value for immediate operands. Returns None
otherwise.
sourcepub fn as_const(&self) -> Option<u64>
pub fn as_const(&self) -> Option<u64>
Returns the associated constant value for constant operands. Returns None
otherwise.
Trait Implementations§
source§impl PartialEq for OpInfo
impl PartialEq for OpInfo
impl Copy for OpInfo
impl Eq for OpInfo
impl StructuralPartialEq for OpInfo
Auto Trait Implementations§
impl RefUnwindSafe for OpInfo
impl Send for OpInfo
impl Sync for OpInfo
impl Unpin for OpInfo
impl UnwindSafe for OpInfo
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