Skip to main content

FilterFn

Trait FilterFn 

Source
pub trait FilterFn<A, 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<ForIdSplat, I, (T1,)> for F
where F: Fn(&I, &T1) -> Result<bool> + Send + 'static, I: Display,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<F, I, T1, T2, T3> FilterFn<ForSplat, I, (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<ForIdSplat, I, (T1, T2, T3, T4)> for F
where F: Fn(&I, &T1, &T2, &T3, &T4) -> Result<bool> + Send + 'static, I: Display,

Source§

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

Source§

impl<F, I, T1, T2, T3, T4> FilterFn<ForSplat, I, (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<ForIdSplat, I, (T1, T2, T3, T4, T5)> for F
where F: Fn(&I, &T1, &T2, &T3, &T4, &T5) -> Result<bool> + Send + 'static, I: Display,

Source§

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

Source§

impl<F, I, T1, T2, T3, T4, T5> FilterFn<ForSplat, I, (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<ForIdSplat, I, (T1, T2, T3, T4, T5, T6)> for F
where F: Fn(&I, &T1, &T2, &T3, &T4, &T5, &T6) -> Result<bool> + Send + 'static, I: Display,

Source§

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

Source§

impl<F, I, T1, T2, T3, T4, T5, T6> FilterFn<ForSplat, I, (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<ForIdSplat, I, (T1, T2, T3, T4, T5, T6, T7)> for F
where F: Fn(&I, &T1, &T2, &T3, &T4, &T5, &T6, &T7) -> Result<bool> + Send + 'static, I: Display,

Source§

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

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, T7> FilterFn<ForSplat, I, (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<ForIdSplat, I, (T1, T2, T3, T4, T5, T6, T7, T8)> for F
where F: Fn(&I, &T1, &T2, &T3, &T4, &T5, &T6, &T7, &T8) -> Result<bool> + Send + 'static, I: Display,

Source§

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

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, T7, T8> FilterFn<ForSplat, I, (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<ForId, I, T> for F
where F: Fn(&I) -> Result<bool> + Send + 'static, I: Display,

Source§

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

Source§

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

Source§

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

Source§

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