Skip to main content

BinArithOp

Trait BinArithOp 

Source
pub trait BinArithOp:
    Op
    + SameOperandsAndResultType
    + OneResultInterface
    + NOpdsInterface<2> {
    // Provided methods
    fn new(ctx: &mut Context, lhs: Value, rhs: Value) -> Self
       where Self: Sized { ... }
    fn lhs(&self, ctx: &Context) -> Value
       where Self: Sized { ... }
    fn rhs(&self, ctx: &Context) -> Value
       where Self: Sized { ... }
}
Expand description

Binary arithmetic Op.

Provided Methods§

Source

fn new(ctx: &mut Context, lhs: Value, rhs: Value) -> Self
where Self: Sized,

Create a new binary arithmetic operation given the operands.

Source

fn lhs(&self, ctx: &Context) -> Value
where Self: Sized,

Get the left-hand side operand of this binary arithmetic Op.

Source

fn rhs(&self, ctx: &Context) -> Value
where Self: Sized,

Get the right-hand side operand of this binary arithmetic Op.

Trait Implementations§

Implementors§