Skip to main content

BinaryFunction

Trait BinaryFunction 

Source
pub trait BinaryFunction<Arg0, Arg1> {
    type Output;

    // Required method
    fn exec(&self, arg0: Arg0, arg1: Arg1) -> Self::Output;
}
Expand description

Implementable binary Fn.

Closures and binary fns implement it.

Required Associated Types§

Required Methods§

Source

fn exec(&self, arg0: Arg0, arg1: Arg1) -> Self::Output

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F, Arg0, Arg1, Out> BinaryFunction<Arg0, Arg1> for F
where F: Fn(Arg0, Arg1) -> Out,

Source§

type Output = Out