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

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:

This example is not tested
generate_variants(path, vec!["foo", "bar", "baz"], |b, v| {
   let b = b.clone();
   b.push(v);
   b
})