Skip to main content

filter

Function filter 

Source
pub fn filter<'c, C>(
    candidates: &'c [C],
    predicates: &[Predicate<C>],
) -> Vec<Outcome<'c, C>>
Expand description

Run every candidate through every predicate, recording the first rejection (if any) per candidate. Predicates are evaluated in order; a candidate rejected by predicate i is not tested against i+1.