Skip to main content

FilterMapFn

Trait FilterMapFn 

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

Filter map function.

Required Methods§

Source

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

Executes the filter 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> 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) -> Result<Option<U>> + Send + 'static, I: Display,

Source§

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

Source§

impl<F, 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) -> Result<Option<U>> + Send + 'static, I: Display,

Source§

impl<F, 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) -> Result<Option<U>> + Send + 'static, I: Display,

Source§

impl<F, 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(&Scope<I>, T1, T2, T3, T4, T5, T6, T7) -> Result<Option<U>> + Send + 'static, I: Display,

Source§

impl<F, 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) -> Result<Option<U>> + Send + 'static, I: Display,

Source§

impl<F, 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) -> Result<Option<U>> + Send + 'static, I: Display,

Source§

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

Source§

impl<F, 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) -> Result<Option<U>> + Send + 'static, I: Display,

Source§

impl<F, 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) -> Result<Option<U>> + Send + 'static, I: Display,

Source§

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

Source§

impl<F, 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) -> Result<Option<U>> + Send + 'static, I: Display,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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