[][src]Trait stork::filters::Filter

pub trait Filter<T>: Debug + DynClone {
    fn matches(&self, val: &T) -> bool;
}

Predicate for any values of passing through a Storkable. See html_filters for example implementations.

Note: all implementations of Filter should have an impl of Clone so they can be passed to children and modified without modifying FilterSets on parents.

Required methods

fn matches(&self, val: &T) -> bool

Loading content...

Implementors

Loading content...