Filter

Trait Filter 

Source
pub trait Filter: Send {
    type Context;

    // Required method
    fn predicate(&self, ctx: &Self::Context, input: &str) -> bool;
}

Required Associated Types§

Required Methods§

Source

fn predicate(&self, ctx: &Self::Context, input: &str) -> bool

Implementors§

Source§

impl<Context, F> Filter for ClosureFilter<Context, F>
where F: Fn(&Context, &str) -> bool + Send, Context: Sync + Send,

Source§

type Context = Context

Source§

impl<FilterContext, FilterT, F, Cushion> Filter for FilterWrapper<FilterContext, FilterT, F, Cushion>
where F: Fn(&Cushion) -> FilterContext + Send, FilterT: Filter<Context = FilterContext>, FilterContext: Sync + Send, Cushion: Send,

Source§

type Context = Cushion