Module :: meta_tools
Collection of general purpose meta tools.
Basic use-case :: variadic constructor of collections
Among other useful meta tools the module aggregates variadic constructors of collections. For example macro hmap! for constructing a hash map.
use *;
let meta_map = hmap! ;
let mut std_map = new;
std_map.insert;
assert_eq!;
Basic use-case :: function-style call
Apply a macro for each element of a list.
Macro for_each may be called either in function-style way or in map-style way.
Pass name of macro to apply to elements as the first arguments and elements after the macro name.
Use comma as delimiter.
use *;
for_each!;
// generates
dbg!;
dbg!;
dbg!;
To add to your project
Try out from the repository