Type Alias BoxedFn3

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

Type alias BoxedFn3 for Boxed FnOnce sync function with 3 arguments

Aliased Type§

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

Trait Implementations§

Source§

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

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

Source§

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