9次发布

0.3.0 2024年1月29日
0.2.6 2023年4月22日
0.2.5 2022年12月15日
0.2.4 2022年8月18日
0.1.0 2021年5月11日

#662数据结构

Download history · Rust 包仓库 1059/week @ 2024-04-21 · Rust 包仓库 1000/week @ 2024-04-28 · Rust 包仓库 1210/week @ 2024-05-05 · Rust 包仓库 1313/week @ 2024-05-12 · Rust 包仓库 1455/week @ 2024-05-19 · Rust 包仓库 1384/week @ 2024-05-26 · Rust 包仓库 963/week @ 2024-06-02 · Rust 包仓库 723/week @ 2024-06-09 · Rust 包仓库 653/week @ 2024-06-16 · Rust 包仓库 882/week @ 2024-06-23 · Rust 包仓库 952/week @ 2024-06-30 · Rust 包仓库 876/week @ 2024-07-07 · Rust 包仓库 823/week @ 2024-07-14 · Rust 包仓库 1041/week @ 2024-07-21 · Rust 包仓库 909/week @ 2024-07-28 · Rust 包仓库 897/week @ 2024-08-04 · Rust 包仓库

3,732 每月下载量
用于 14 crates

MIT 许可证

26KB
216

map-macro

Build Status Latest Version Downloads Docs License: MIT

该crate提供用于从标准库和hashbrown初始化集合的声明性宏。

该crate无依赖,且如果你选择不支持标准库集合,则是 #![no_std]

示例

use map_macro::hash_map;

let hello = hash_map! {
    "en" => "Hello",
    "de" => "Hallo",
    "fr" => "Bonjour",
    "es" => "Hola",
    "cat" => "Hola",
    "🌍" => "👋",
};

依赖项