pub fn filter<F>(&self, predicate: F) -> Category
    where F : Fn(&(&String, &RuleList)) -> bool {
    Category {
      name: self.name.clone(),
      rules: self.rules.iter().filter(predicate)
        .map(|(path, rules)| (path.clone(), rules.clone())).collect()
    }
  }
/// Filters the matchers in the category by the predicate, and returns a new category
Filters the matchers in the category by the predicate, and returns a new category
Filters the matchers in the category by the predicate and returns a new category
pub fn filter<F>(&self, predicate: F) -> Category
    where F : Fn(&(&String, &RuleList)) -> bool {
    Category {
      name: self.name.clone(),
      rules: self.rules.iter().filter(predicate)
        .map(|(path, rules)| (path.clone(), rules.clone())).collect()
    }
  }
pub fn filter < F > ( & self , predicate : F ) -> Category where F : Fn ( & ( & String , & RuleList ) ) -> bool { Category { name : self . name . clone ( ) , rules : self . rules . iter ( ) . filter ( predicate ) . map ( | ( path , rules ) | ( path . clone ( ) , rules . clone ( ) ) ) . collect ( ) } }
Filters the matchers in the category by the predicate, and returns a new category
Filters the matchers in the category by the predicate and returns a new category
&self
predicate
F
&self
predicate
F