Trait acme_core::ops::binary::BinOp

source ·
pub trait BinOp<A, B = A> {
    type Output;

    // Required method
    fn eval(&self, lhs: A, rhs: B) -> Self::Output;
}

Required Associated Types§

Required Methods§

source

fn eval(&self, lhs: A, rhs: B) -> Self::Output

Trait Implementations§

source§

impl<A, B, C> BinOp<A, B> for Box<dyn BinOp<A, B, Output = C>>

§

type Output = C

source§

fn eval(&self, lhs: A, rhs: B) -> Self::Output

Implementations on Foreign Types§

source§

impl<A, B, C> BinOp<A, B> for Box<dyn BinOp<A, B, Output = C>>

§

type Output = C

source§

fn eval(&self, lhs: A, rhs: B) -> Self::Output

Implementors§

source§

impl<A, B, C> BinOp<A, B> for Addition
where A: Add<B, Output = C>,

§

type Output = C

source§

impl<A, B, C> BinOp<A, B> for Division
where A: Div<B, Output = C>,

§

type Output = C

source§

impl<A, B, C> BinOp<A, B> for Multiplication
where A: Mul<B, Output = C>,

§

type Output = C

source§

impl<A, B, C> BinOp<A, B> for Power
where A: Pow<B, Output = C>,

§

type Output = C

source§

impl<A, B, C> BinOp<A, B> for Remainder
where A: Rem<B, Output = C>,

§

type Output = C

source§

impl<A, B, C> BinOp<A, B> for Subtraction
where A: Sub<B, Output = C>,

§

type Output = C

source§

impl<S, A, B, C> BinOp<A, B> for S
where S: Fn(A, B) -> C,

§

type Output = C