pub fn add_category<S>(&mut self, category: S) -> &mut Category
      where S: Into<String>
    {
      let category = category.into();
      if !self.rules.contains_key(&category) {
          self.rules.insert(category.clone(), Category::default(category.clone()));
      }
      self.rules.get_mut(&category).unwrap()
    }
/// Adds the category to the map of rules
Adds the category to the map of rules
Adds the category to the map of rules
pub fn add_category<S>(&mut self, category: S) -> &mut Category
      where S: Into<String>
    {
      let category = category.into();
      if !self.rules.contains_key(&category) {
          self.rules.insert(category.clone(), Category::default(category.clone()));
      }
      self.rules.get_mut(&category).unwrap()
    }
pub fn add_category < S > ( & mut self , category : S ) -> & mut Category where S : Into < String > { let category = category . into ( ) ; if ! self . rules . contains_key ( & category ) { self . rules . insert ( category . clone ( ) , Category :: default ( category . clone ( ) ) ) ; } self . rules . get_mut ( & category ) . unwrap ( ) }
Adds the category to the map of rules
Adds the category to the map of rules
&mut self
category
S
&mut self
category
S