#initialization #hash-map #macro

hashmacro

Rust macro for fast HashMap initialisation

1 unstable release

Uses old Rust 2015

0.1.1 Mar 21, 2017

#124 in #initialization

MIT license

2KB

Hash macro

Rust macro for fast HashMap initialisation.


lib.rs:

Rust macro for fast HashMap initialisation.

Examples

#[macro_use]
extern crate hashmacro;
use std::collections::HashMap;

fn main () {
     let hashmap: HashMap<_, u32> = hashmap! {
    foo: 2u32,
    bar: 33u32
  };
}

No runtime deps