#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

#362 in #hash-map

Download history 3/week @ 2024-11-13 11/week @ 2024-11-20 13/week @ 2024-11-27 19/week @ 2024-12-04 32/week @ 2024-12-11 5/week @ 2024-12-18 3/week @ 2025-01-01 9/week @ 2025-01-08 13/week @ 2025-01-15 12/week @ 2025-01-22 8/week @ 2025-01-29 18/week @ 2025-02-05 25/week @ 2025-02-12 14/week @ 2025-02-26

60 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