#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

#322 in #hash-map

Download history 29/week @ 2024-03-18 33/week @ 2024-03-25 57/week @ 2024-04-01 17/week @ 2024-04-08 17/week @ 2024-04-15 23/week @ 2024-04-22 13/week @ 2024-04-29 17/week @ 2024-05-06 39/week @ 2024-05-13 13/week @ 2024-05-20 15/week @ 2024-05-27 18/week @ 2024-06-03 22/week @ 2024-06-10 12/week @ 2024-06-17 23/week @ 2024-06-24

57 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