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