Skip to main content

filter_fn

Function filter_fn 

Source
pub fn filter_fn<F>(f: F) -> FnFilter<F>
where F: Fn(&Context) -> bool + Send + Sync + Clone + 'static,
Expand description

Creates a Filter from any closure with signature fn(&Context) -> bool.