Skip to main content

FlatMapFn

Trait FlatMapFn 

Source
pub trait FlatMapFn<A, J, I, T, U>: Send + 'static {
    type Iter: IntoIterator<Item = (Key<I>, U)>;

    // Required method
    fn execute(&self, scope: &mut Scope<I>, value: T) -> Result<Self::Iter>;
}
Expand description

Flat map function.

Required Associated Types§

Source

type Iter: IntoIterator<Item = (Key<I>, U)>

Iterator type returned by this function.

Required Methods§

Source

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

Executes the flat map function.

§Errors

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

Implementors§

Source§

impl<F, R, J, I, T1, T2, T3, T4, T5, T6, T7, T8, U> FlatMapFn<ForIdSplat, J, I, (T1, T2, T3, T4, T5, T6, T7, T8), U> for F
where F: Fn(&I, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, T5, T6, T7, T8, U> FlatMapFn<ForKeySplat, J, I, (T1, T2, T3, T4, T5, T6, T7, T8), U> for F
where F: Fn(&Key<I>, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, T5, T6, T7, T8, U> FlatMapFn<ForScopeSplat, J, I, (T1, T2, T3, T4, T5, T6, T7, T8), U> for F
where F: Fn(&mut Scope<I>, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, T5, T6, T7, T8, U> FlatMapFn<ForSplat, J, I, (T1, T2, T3, T4, T5, T6, T7, T8), U> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, T5, T6, T7, U> FlatMapFn<ForIdSplat, J, I, (T1, T2, T3, T4, T5, T6, T7), U> for F
where F: Fn(&I, T1, T2, T3, T4, T5, T6, T7) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, T5, T6, T7, U> FlatMapFn<ForKeySplat, J, I, (T1, T2, T3, T4, T5, T6, T7), U> for F
where F: Fn(&Key<I>, T1, T2, T3, T4, T5, T6, T7) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, T5, T6, T7, U> FlatMapFn<ForScopeSplat, J, I, (T1, T2, T3, T4, T5, T6, T7), U> for F
where F: Fn(&mut Scope<I>, T1, T2, T3, T4, T5, T6, T7) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, T5, T6, T7, U> FlatMapFn<ForSplat, J, I, (T1, T2, T3, T4, T5, T6, T7), U> for F
where F: Fn(T1, T2, T3, T4, T5, T6, T7) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, T5, T6, U> FlatMapFn<ForIdSplat, J, I, (T1, T2, T3, T4, T5, T6), U> for F
where F: Fn(&I, T1, T2, T3, T4, T5, T6) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, T5, T6, U> FlatMapFn<ForKeySplat, J, I, (T1, T2, T3, T4, T5, T6), U> for F
where F: Fn(&Key<I>, T1, T2, T3, T4, T5, T6) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, T5, T6, U> FlatMapFn<ForScopeSplat, J, I, (T1, T2, T3, T4, T5, T6), U> for F
where F: Fn(&mut Scope<I>, T1, T2, T3, T4, T5, T6) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, T5, T6, U> FlatMapFn<ForSplat, J, I, (T1, T2, T3, T4, T5, T6), U> for F
where F: Fn(T1, T2, T3, T4, T5, T6) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, T5, U> FlatMapFn<ForIdSplat, J, I, (T1, T2, T3, T4, T5), U> for F
where F: Fn(&I, T1, T2, T3, T4, T5) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, T5, U> FlatMapFn<ForKeySplat, J, I, (T1, T2, T3, T4, T5), U> for F
where F: Fn(&Key<I>, T1, T2, T3, T4, T5) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, T5, U> FlatMapFn<ForScopeSplat, J, I, (T1, T2, T3, T4, T5), U> for F
where F: Fn(&mut Scope<I>, T1, T2, T3, T4, T5) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, T5, U> FlatMapFn<ForSplat, J, I, (T1, T2, T3, T4, T5), U> for F
where F: Fn(T1, T2, T3, T4, T5) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, U> FlatMapFn<ForIdSplat, J, I, (T1, T2, T3, T4), U> for F
where F: Fn(&I, T1, T2, T3, T4) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, U> FlatMapFn<ForKeySplat, J, I, (T1, T2, T3, T4), U> for F
where F: Fn(&Key<I>, T1, T2, T3, T4) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, U> FlatMapFn<ForScopeSplat, J, I, (T1, T2, T3, T4), U> for F
where F: Fn(&mut Scope<I>, T1, T2, T3, T4) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, T4, U> FlatMapFn<ForSplat, J, I, (T1, T2, T3, T4), U> for F
where F: Fn(T1, T2, T3, T4) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, U> FlatMapFn<ForIdSplat, J, I, (T1, T2, T3), U> for F
where F: Fn(&I, T1, T2, T3) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, U> FlatMapFn<ForKeySplat, J, I, (T1, T2, T3), U> for F
where F: Fn(&Key<I>, T1, T2, T3) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, U> FlatMapFn<ForScopeSplat, J, I, (T1, T2, T3), U> for F
where F: Fn(&mut Scope<I>, T1, T2, T3) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, T3, U> FlatMapFn<ForSplat, J, I, (T1, T2, T3), U> for F
where F: Fn(T1, T2, T3) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, U> FlatMapFn<ForIdSplat, J, I, (T1, T2), U> for F
where F: Fn(&I, T1, T2) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, U> FlatMapFn<ForKeySplat, J, I, (T1, T2), U> for F
where F: Fn(&Key<I>, T1, T2) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, U> FlatMapFn<ForScopeSplat, J, I, (T1, T2), U> for F
where F: Fn(&mut Scope<I>, T1, T2) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, T2, U> FlatMapFn<ForSplat, J, I, (T1, T2), U> for F
where F: Fn(T1, T2) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, U> FlatMapFn<ForIdSplat, J, I, (T1,), U> for F
where F: Fn(&I, T1) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, U> FlatMapFn<ForKeySplat, J, I, (T1,), U> for F
where F: Fn(&Key<I>, T1) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, U> FlatMapFn<ForScopeSplat, J, I, (T1,), U> for F
where F: Fn(&mut Scope<I>, T1) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T1, U> FlatMapFn<ForSplat, J, I, (T1,), U> for F
where F: Fn(T1) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T, U> FlatMapFn<ForId, J, I, T, U> for F
where F: Fn(&I) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T, U> FlatMapFn<ForIdValue, J, I, T, U> for F
where F: Fn(&I, T) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T, U> FlatMapFn<ForKey, J, I, T, U> for F
where F: Fn(&Key<I>) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T, U> FlatMapFn<ForKeyValue, J, I, T, U> for F
where F: Fn(&Key<I>, T) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T, U> FlatMapFn<ForScope, J, I, T, U> for F
where F: Fn(&mut Scope<I>) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T, U> FlatMapFn<ForScopeValue, J, I, T, U> for F
where F: Fn(&mut Scope<I>, T) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J

Source§

impl<F, R, J, I, T, U> FlatMapFn<ForValue, J, I, T, U> for F
where F: Fn(T) -> R + Send + 'static, R: IntoResult<J>, J: IntoIterator<Item = (Key<I>, U)>, I: Display,

Source§

type Iter = J