Skip to main content

FilterMapFn

Trait FilterMapFn 

Source
pub trait FilterMapFn<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<I, Splat<(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<I, Splat<(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<I, Splat<(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<I, Splat<(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<I, Splat<(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<I, Splat<(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<I, Splat<(T1, T2)>, U> for F
where F: Fn(&T1, &T2) -> Result<Option<U>> + Send + 'static, I: Display,

Source§

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

Source§

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