Trait msp430_asm::two_operand::TwoOperand
source · pub trait TwoOperand {
fn mnemonic(&self) -> &str;
fn source(&self) -> &Operand;
fn destination(&self) -> &Operand;
fn size(&self) -> usize;
fn operand_width(&self) -> &OperandWidth;
}
Expand description
All two operand instructions implement this trait to provide a common interface and polymorphism
Required Methods§
sourcefn mnemonic(&self) -> &str
fn mnemonic(&self) -> &str
Return the mnemonic for the instruction. This is operand width aware
sourcefn destination(&self) -> &Operand
fn destination(&self) -> &Operand
Returns the destination operand
sourcefn operand_width(&self) -> &OperandWidth
fn operand_width(&self) -> &OperandWidth
Returns the operand width