#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

#298 in #hash-map

Download history 8/week @ 2023-12-18 1/week @ 2024-01-08 39/week @ 2024-02-05 6/week @ 2024-02-12 49/week @ 2024-02-19 40/week @ 2024-02-26 22/week @ 2024-03-04 34/week @ 2024-03-11 29/week @ 2024-03-18 33/week @ 2024-03-25 57/week @ 2024-04-01

157 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