Skip to main content

SameOperandsType

Trait SameOperandsType 

Source
pub trait SameOperandsType: Op + AtLeastNOpdsInterface<1> {
    // Provided method
    fn operand_type(&self, ctx: &Context) -> Ptr<TypeObj> { ... }
}
Expand description

An Op with at least one operand, and them all having the same type.

Provided Methods§

Source

fn operand_type(&self, ctx: &Context) -> Ptr<TypeObj>

Get the common type of the operands.

Trait Implementations§

Implementors§