Skip to main content

MapFn

Trait MapFn 

Source
pub trait MapFn<A, I, T, U>: Send + 'static {
    // Required method
    fn execute(&self, scope: &Scope<I>, value: T) -> Result<U>;
}
Expand description

Map function.

Required Methods§

Source

fn execute(&self, scope: &Scope<I>, value: T) -> Result<U>

Executes the map function.

§Errors

This method returns an error if the function fails to execute.

Implementors§

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, T7, T8, U> MapFn<ForIdSplat, I, (T1, T2, T3, T4, T5, T6, T7, T8), U> for F
where F: Fn(&I, T1, T2, T3, T4, T5, T6, T7, T8) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, T7, T8, U> MapFn<ForScopeSplat, I, (T1, T2, T3, T4, T5, T6, T7, T8), U> for F
where F: Fn(&Scope<I>, T1, T2, T3, T4, T5, T6, T7, T8) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, T7, T8, U> MapFn<ForSplat, I, (T1, T2, T3, T4, T5, T6, T7, T8), U> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, T7, U> MapFn<ForIdSplat, I, (T1, T2, T3, T4, T5, T6, T7), U> for F
where F: Fn(&I, T1, T2, T3, T4, T5, T6, T7) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, T7, U> MapFn<ForScopeSplat, I, (T1, T2, T3, T4, T5, T6, T7), U> for F
where F: Fn(&Scope<I>, T1, T2, T3, T4, T5, T6, T7) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, T7, U> MapFn<ForSplat, I, (T1, T2, T3, T4, T5, T6, T7), U> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, U> MapFn<ForIdSplat, I, (T1, T2, T3, T4, T5, T6), U> for F
where F: Fn(&I, T1, T2, T3, T4, T5, T6) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, U> MapFn<ForScopeSplat, I, (T1, T2, T3, T4, T5, T6), U> for F
where F: Fn(&Scope<I>, T1, T2, T3, T4, T5, T6) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, U> MapFn<ForSplat, I, (T1, T2, T3, T4, T5, T6), U> for F
where F: Fn(T1, T2, T3, T4, T5, T6) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, U> MapFn<ForIdSplat, I, (T1, T2, T3, T4, T5), U> for F
where F: Fn(&I, T1, T2, T3, T4, T5) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, U> MapFn<ForScopeSplat, I, (T1, T2, T3, T4, T5), U> for F
where F: Fn(&Scope<I>, T1, T2, T3, T4, T5) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, U> MapFn<ForSplat, I, (T1, T2, T3, T4, T5), U> for F
where F: Fn(T1, T2, T3, T4, T5) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, U> MapFn<ForIdSplat, I, (T1, T2, T3, T4), U> for F
where F: Fn(&I, T1, T2, T3, T4) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, U> MapFn<ForScopeSplat, I, (T1, T2, T3, T4), U> for F
where F: Fn(&Scope<I>, T1, T2, T3, T4) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, U> MapFn<ForSplat, I, (T1, T2, T3, T4), U> for F
where F: Fn(T1, T2, T3, T4) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, U> MapFn<ForIdSplat, I, (T1, T2, T3), U> for F
where F: Fn(&I, T1, T2, T3) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, U> MapFn<ForScopeSplat, I, (T1, T2, T3), U> for F
where F: Fn(&Scope<I>, T1, T2, T3) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, U> MapFn<ForSplat, I, (T1, T2, T3), U> for F
where F: Fn(T1, T2, T3) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, U> MapFn<ForIdSplat, I, (T1, T2), U> for F
where F: Fn(&I, T1, T2) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, U> MapFn<ForScopeSplat, I, (T1, T2), U> for F
where F: Fn(&Scope<I>, T1, T2) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, U> MapFn<ForSplat, I, (T1, T2), U> for F
where F: Fn(T1, T2) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, U> MapFn<ForIdSplat, I, (T1,), U> for F
where F: Fn(&I, T1) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, U> MapFn<ForScopeSplat, I, (T1,), U> for F
where F: Fn(&Scope<I>, T1) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, U> MapFn<ForSplat, I, (T1,), U> for F
where F: Fn(T1) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T, U> MapFn<ForId, I, T, U> for F
where F: Fn(&I) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T, U> MapFn<ForIdValue, I, T, U> for F
where F: Fn(&I, T) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T, U> MapFn<ForScope, I, T, U> for F
where F: Fn(&Scope<I>) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T, U> MapFn<ForScopeValue, I, T, U> for F
where F: Fn(&Scope<I>, T) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T, U> MapFn<ForValue, I, T, U> for F
where F: Fn(T) -> Result<U> + Send + 'static, I: Display,