pub trait OneOpdInterface: Op {
// Provided methods
fn get_operand(&self, ctx: &Context) -> Value { ... }
fn operand_type(&self, ctx: &Context) -> TypeHandle { ... }
}Expand description
An Op having exactly one operand.
Provided Methods§
Sourcefn get_operand(&self, ctx: &Context) -> Value
fn get_operand(&self, ctx: &Context) -> Value
Get the single operand used by this Op.
Sourcefn operand_type(&self, ctx: &Context) -> TypeHandle
fn operand_type(&self, ctx: &Context) -> TypeHandle
Get the type of the single operand used by this Op.
Trait Implementations§
impl OpInterfaceMarker for dyn OneOpdInterface
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".