pub fn resolve_matchers(&self, category: &str, path: &Vec<String>) -> Option<Category> {
      if category == "body" || category == "header" || category == "query" {
        self.rules_for_category(&s!(category)).map(|category| category.filter(|&(val, _)| {
          calc_path_weight(val.clone(), path) > 0
        }))
      } else {
        self.rules_for_category(&s!(category))
      }
    }
/// Returns a `Category` filtered with all rules that match the given path.
Returns a `Category` filtered with all rules that match the given path.
Returns a ` Category ` filtered with all rules that match the given path .
pub fn resolve_matchers(&self, category: &str, path: &Vec<String>) -> Option<Category> {
      if category == "body" || category == "header" || category == "query" {
        self.rules_for_category(&s!(category)).map(|category| category.filter(|&(val, _)| {
          calc_path_weight(val.clone(), path) > 0
        }))
      } else {
        self.rules_for_category(&s!(category))
      }
    }
pub fn resolve_matchers ( & self , category : & str , path : & Vec < String > ) -> Option < Category > { if category == " " || category == " " || category == " " { self . rules_for_category ( & s ! ( category ) ) . map ( | category | category . filter ( | & ( val , _ ) | { calc_path_weight ( val . clone ( ) , path ) > 0 } ) ) } else { self . rules_for_category ( & s ! ( category ) ) } }
Returns a `Category` filtered with all rules that match the given path.
Returns a ` Category ` filtered with all rules that match the given path .
&self
category
&str
path
&Vec<String>
&self
category
&str
path
&Vec<String>