Skip to main content

CastOpInterface

Trait CastOpInterface 

Source
pub trait CastOpInterface:
    Op
    + OneResultInterface
    + OneOpdInterface {
    // Provided method
    fn new(ctx: &mut Context, operand: Value, res_type: TypeHandle) -> Self
       where Self: Sized { ... }
}
Expand description

A Cast [Op] has one argument and one result.

Provided Methods§

Source

fn new(ctx: &mut Context, operand: Value, res_type: TypeHandle) -> Self
where Self: Sized,

Create a new cast operation given the operand.

Trait Implementations§

Source§

impl OpInterfaceMarker for dyn CastOpInterface

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§