#hash-map #map #macro

bin+lib hmap

Adds hmap! macro for easily generate HashMap

1 unstable release

Uses old Rust 2015

0.1.0 Sep 7, 2018

#340 in #hash-map

35 downloads per month
Used in 4 crates

MIT license

3KB

hmap

This crate provides simple hashmap creation, example:

#[macro_use]extern crate hmap;

fn main() {
    //generates HashMap<&'static str,i32>
    let hash_map = hmap!("one" => 1,"two" => 2);
}

No runtime deps