Trait functional::BinaryOperation
[−]
[src]
pub trait BinaryOperation<T> { fn apply(lhs: T, rhs: T) -> T; }
Define binary operation as type
Required Methods
fn apply(lhs: T, rhs: T) -> T
Implementors
impl<T: Add<Output=T>> BinaryOperation<T> for Add
impl<T: Mul<Output=T>> BinaryOperation<T> for Mul
impl<U, T: IntoIterator<Item=U> + FromIterator<U>> BinaryOperation<T> for Concat