Skip to main content

FlatMapFn

Trait FlatMapFn 

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

Flat map function.

Required Methods§

Source

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

Executes the flat 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, R> FlatMapFn<ForIdSplat, I, (T1, T2, T3, T4, T5, T6, T7, T8), U, R> for F
where F: Fn(&I, T1, T2, T3, T4, T5, T6, T7, T8) -> Result<R> + Send + 'static, R: IntoIterator<Item = (I, U)>, I: Display,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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