BinaryTransform

Trait BinaryTransform 

Source
pub trait BinaryTransform<In1, In2, Out = In1> {
    // Required method
    fn apply(lhs: In1, rhs: In2) -> Out;
}
Expand description

Trait for binary transforms applied lazily during iteration. Zero-sized types implementing this get monomorphized (zero runtime cost).

Required Methods§

Source

fn apply(lhs: In1, rhs: In2) -> Out

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Add<U, Output = O>, U, O> BinaryTransform<T, U, O> for Plus

Source§

impl<T: Div<U, Output = O>, U, O> BinaryTransform<T, U, O> for Divide

Source§

impl<T: Mul<U, Output = O>, U, O> BinaryTransform<T, U, O> for Times

Source§

impl<T: Sub<U, Output = O>, U, O> BinaryTransform<T, U, O> for Minus