Skip to main content

FilterMapFn

Trait FilterMapFn 

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

Filter map function.

Required Methods§

Source

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

Executes the filter map function.

§Errors

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7, T8, U> FilterMapFn<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) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7, T8, U> FilterMapFn<ForKeySplat, 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<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7, T8, U> FilterMapFn<ForScopeSplat, 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<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7, T8, U> FilterMapFn<ForSplat, 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<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7, U> FilterMapFn<ForIdSplat, 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<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7, U> FilterMapFn<ForKeySplat, 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<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7, U> FilterMapFn<ForScopeSplat, 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<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, T7, U> FilterMapFn<ForSplat, 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<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, U> FilterMapFn<ForIdSplat, 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<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, U> FilterMapFn<ForKeySplat, 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<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, T2, T3, T4, T5, T6, U> FilterMapFn<ForScopeSplat, 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<Option<U>>, I: Display,

Source§

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

Source§

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

Source§

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

Source§

impl<F, R, I, T1, T2, T3, T4, T5, U> FilterMapFn<ForScopeSplat, 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<Option<U>>, I: Display,

Source§

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

Source§

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

Source§

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

Source§

impl<F, R, I, T1, T2, T3, T4, U> FilterMapFn<ForScopeSplat, I, (T1, T2, T3, T4), U> for F
where F: Fn(&mut Scope<I>, T1, T2, T3, T4) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

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

Source§

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

Source§

impl<F, R, I, T1, T2, T3, U> FilterMapFn<ForKeySplat, I, (T1, T2, T3), U> for F
where F: Fn(&Key<I>, T1, T2, T3) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, T2, T3, U> FilterMapFn<ForScopeSplat, I, (T1, T2, T3), U> for F
where F: Fn(&mut Scope<I>, T1, T2, T3) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, T2, T3, U> FilterMapFn<ForSplat, I, (T1, T2, T3), U> for F
where F: Fn(T1, T2, T3) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, T2, U> FilterMapFn<ForIdSplat, I, (T1, T2), U> for F
where F: Fn(&I, T1, T2) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, T2, U> FilterMapFn<ForKeySplat, I, (T1, T2), U> for F
where F: Fn(&Key<I>, T1, T2) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, T2, U> FilterMapFn<ForScopeSplat, I, (T1, T2), U> for F
where F: Fn(&mut Scope<I>, T1, T2) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, T2, U> FilterMapFn<ForSplat, I, (T1, T2), U> for F
where F: Fn(T1, T2) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, U> FilterMapFn<ForIdSplat, I, (T1,), U> for F
where F: Fn(&I, T1) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, U> FilterMapFn<ForKeySplat, I, (T1,), U> for F
where F: Fn(&Key<I>, T1) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, U> FilterMapFn<ForScopeSplat, I, (T1,), U> for F
where F: Fn(&mut Scope<I>, T1) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

impl<F, R, I, T1, U> FilterMapFn<ForSplat, I, (T1,), U> for F
where F: Fn(T1) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

impl<F, R, I, T, U> FilterMapFn<ForId, I, T, U> for F
where F: Fn(&I) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

impl<F, R, I, T, U> FilterMapFn<ForIdValue, I, T, U> for F
where F: Fn(&I, T) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

impl<F, R, I, T, U> FilterMapFn<ForKey, I, T, U> for F
where F: Fn(&Key<I>) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

impl<F, R, I, T, U> FilterMapFn<ForKeyValue, I, T, U> for F
where F: Fn(&Key<I>, T) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

impl<F, R, I, T, U> FilterMapFn<ForScope, I, T, U> for F
where F: Fn(&mut Scope<I>) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

impl<F, R, I, T, U> FilterMapFn<ForScopeValue, I, T, U> for F
where F: Fn(&mut Scope<I>, T) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,

Source§

impl<F, R, I, T, U> FilterMapFn<ForValue, I, T, U> for F
where F: Fn(T) -> R + Send + 'static, R: IntoResult<Option<U>>, I: Display,