OperandCast

Trait OperandCast 

Source
pub trait OperandCast {
    // Required methods
    fn as_operand(&self) -> &Operand;
    fn from_operand(op: &Operand) -> Self;
}
Expand description

A helper trait to help cast Operand to Architecture dependent operands and vice-versa.

Required Methods§

Source

fn as_operand(&self) -> &Operand

Source

fn from_operand(op: &Operand) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§