commonmacros Crates.io common</em>macros maintenance License License

**provides common macros like hash_map!


Rust crate providing some common macros.

Currently following macros are exported:

Example

```rust use std::collections::HashMap; use commonmacros::hashmap;

fn main() { let mapa = hashmap! { "foo" => vec![0,1,2], "bar" => vec![3,4,5] };

// expands to roughly
let map_b = {
    let mut map = HashMap::with_capacity(2);
    map.insert("foo", vec![0,1,2]);
    map.insert("bar", vec![3,4,5]);
    map
};

assert_eq!(map_a, map_b);

} ```

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.