9 releases
0.3.0 | Jan 29, 2024 |
---|---|
0.2.6 | Apr 22, 2023 |
0.2.5 | Dec 15, 2022 |
0.2.4 | Aug 18, 2022 |
0.1.0 | May 11, 2021 |
#309 in Data structures
7,968 downloads per month
Used in 26 crates
(16 directly)
26KB
216 lines
map-macro
This crate offers declarative macros for initializing collections from the standard library and hashbrown.
This crate has zero dependencies and is #![no_std]
if you opt-out of
support for the standard library collections.
Example
use map_macro::hash_map;
let hello = hash_map! {
"en" => "Hello",
"de" => "Hallo",
"fr" => "Bonjour",
"es" => "Hola",
"cat" => "Hola",
"🌍" => "👋",
};