SingleOperand

Trait SingleOperand 

Source
pub trait SingleOperand {
    // Required methods
    fn mnemonic(&self) -> &str;
    fn source(&self) -> &Operand;
    fn size(&self) -> usize;
    fn operand_width(&self) -> &Option<OperandWidth>;
}
Expand description

All single operand instructions implement this trait to provide a common interface and polymorphism

Required Methods§

Source

fn mnemonic(&self) -> &str

Return the mnemonic for the instruction. This is operand width aware

Source

fn source(&self) -> &Operand

Returns the source operand

Source

fn size(&self) -> usize

Returns the size of the instruction (in bytes)

Source

fn operand_width(&self) -> &Option<OperandWidth>

Returns the operand width if one is specified

Implementors§