Function libimagutil::variants::generate_variants [] [src]

pub fn generate_variants<A, B, C, F>(base: A, modders: Vec<B>, f: &F) -> Vec<C> where
    F: Fn(&A, B) -> C, 

Generate variants of a base value by applying parts

Example:

Be careful when using this code, it's not being tested!
generate_variants(path, vec!["foo", "bar", "baz"], |b, v| {
   let b = b.clone();
   b.push(v);
   b
})