Skip to main content

FilterFn

Trait FilterFn 

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

Filter function.

Required Methods§

Source

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

Executes the filter function.

§Errors

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

Implementors§

Source§

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

Source§

impl<F, I, T1, T2> FilterFn<I, Splat<(T1, T2)>> for F
where F: Fn(&T1, &T2) -> Result<bool> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3> FilterFn<I, Splat<(T1, T2, T3)>> for F
where F: Fn(&T1, &T2, &T3) -> Result<bool> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4> FilterFn<I, Splat<(T1, T2, T3, T4)>> for F
where F: Fn(&T1, &T2, &T3, &T4) -> Result<bool> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5> FilterFn<I, Splat<(T1, T2, T3, T4, T5)>> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5) -> Result<bool> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6> FilterFn<I, Splat<(T1, T2, T3, T4, T5, T6)>> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5, &T6) -> Result<bool> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, T7> FilterFn<I, Splat<(T1, T2, T3, T4, T5, T6, T7)>> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5, &T6, &T7) -> Result<bool> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, T7, T8> FilterFn<I, Splat<(T1, T2, T3, T4, T5, T6, T7, T8)>> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5, &T6, &T7, &T8) -> Result<bool> + Send + 'static, I: Display,

Source§

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