Type Alias BoxedFn2

Source
pub type BoxedFn2<'a, T1, T2, T3, E1> = Box<dyn FnOnce(T1, T2) -> Result<T3, E1> + Send + Sync + 'a>;
Expand description

Type alias BoxedFn2 for Boxed FnOnce sync function with 2 arguments

Aliased Type§

struct BoxedFn2<'a, T1, T2, T3, E1>(/* private fields */);

Trait Implementations§

Source§

impl<'a, T1, T2, T3, E1> Injector<T2, Box<dyn FnOnce(T1) -> Result<T3, E1> + Sync + Send + 'a>> for BoxedFn2<'a, T1, T2, T3, E1>
where T1: 'a, T2: Send + Sync + 'a, T3: 'a, E1: 'a,

Injector implementation for a given sync function that accepts 1 + 1 arguments and returns a function with 1 arguments

Source§

fn provide(self, a: T2) -> BoxedFn1<'a, T1, T3, E1>