Skip to main content

CastOpInterface

Trait CastOpInterface 

Source
pub trait CastOpInterface:
    Op
    + OneResultInterface
    + OneOpdInterface
    + NResultsInterface<1>
    + NOpdsInterface<1> {
    // Provided method
    fn new(ctx: &mut Context, operand: Value, res_type: Ptr<TypeObj>) -> 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: Ptr<TypeObj>) -> Self
where Self: Sized,

Create a new cast operation given the operand.

Trait Implementations§

Implementors§