pub fn apply_generator<F>(&self, category: &GeneratorCategory, mut closure: F)
    where F: FnMut(&String, &Generator) {
    if self.categories.contains_key(category) && !self.categories[category].is_empty() {
      for (key, value) in self.categories[category].clone() {
        closure(&key, &value)
      }
    }
  }
/// If there are generators for the provided category, invokes the closure for all keys and values
/// in the category.
If there are generators for the provided category, invokes the closure for all keys and values
in the category.
If there are generators for the provided category invokes the closure for all keys and values in the category .
pub fn apply_generator<F>(&self, category: &GeneratorCategory, mut closure: F)
    where F: FnMut(&String, &Generator) {
    if self.categories.contains_key(category) && !self.categories[category].is_empty() {
      for (key, value) in self.categories[category].clone() {
        closure(&key, &value)
      }
    }
  }
pub fn apply_generator < F > ( & self , category : & GeneratorCategory , mut closure : F ) where F : FnMut ( & String , & Generator ) { if self . categories . contains_key ( category ) && ! self . categories [ category ] . is_empty ( ) { for ( key , value ) in self . categories [ category ] . clone ( ) { closure ( & key , & value ) } } }
If there are generators for the provided category, invokes the closure for all keys and values
in the category.
If there are generators for the provided category invokes the closure for all keys and values in the category .
&self
category
&GeneratorCategory
closure
F
&self
category
&GeneratorCategory
closure
F