Skip to main content

SameOperandsAndResultType

Trait SameOperandsAndResultType 

Source
pub trait SameOperandsAndResultType:
    Op
    + SameOperandsType
    + SameResultsType {
    // Provided method
    fn common_type(&self, ctx: &Context) -> Option<TypeHandle> { ... }
}
Expand description

An Op with all results and operands having the same type.

Provided Methods§

Source

fn common_type(&self, ctx: &Context) -> Option<TypeHandle>

Get the common type of results / operands.

Trait Implementations§

Implementors§