pub enum FullOperand {
Full(GenericOperand),
Register(RegisterOperand),
Constant(ConstantOperand),
GlobalVariable(GlobalVariable),
}Variants§
Full(GenericOperand)
Full including all memory modifiers
Register(RegisterOperand)
Use value at register
Constant(ConstantOperand)
Constant and potentially offset
GlobalVariable(GlobalVariable)
Global variable on the stack
Implementations§
Source§impl FullOperand
impl FullOperand
pub fn as_register_operand( self, index: usize, ) -> Result<RegisterOperand, InstructionReadError>
pub fn as_non_memory_operand( self, index: usize, ) -> Result<NonMemoryOperand, InstructionReadError>
pub fn as_generic_operand( self, index: usize, ) -> Result<GenericOperand, InstructionReadError>
pub fn as_constant_operand( self, index: usize, ) -> Result<ConstantOperand, InstructionReadError>
pub fn as_global_variable( self, index: usize, ) -> Result<GlobalVariable, InstructionReadError>
pub fn as_immediate(self, index: usize) -> Result<u64, InstructionReadError>
Trait Implementations§
Source§impl Clone for FullOperand
impl Clone for FullOperand
Source§fn clone(&self) -> FullOperand
fn clone(&self) -> FullOperand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FullOperand
impl Debug for FullOperand
impl Eq for FullOperand
Source§impl Hash for FullOperand
impl Hash for FullOperand
Source§impl PartialEq for FullOperand
impl PartialEq for FullOperand
impl StructuralPartialEq for FullOperand
Auto Trait Implementations§
impl Freeze for FullOperand
impl RefUnwindSafe for FullOperand
impl Send for FullOperand
impl Sync for FullOperand
impl Unpin for FullOperand
impl UnsafeUnpin for FullOperand
impl UnwindSafe for FullOperand
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