#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

#52 in #hashmap

Download history 4/week @ 2023-11-27 1/week @ 2023-12-11 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 22/week @ 2024-03-11

134 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