Crate macron_map

Source
Expand description

githubcrates-iodocs-rs

§Map Collection Parser

§Introduction:

The key-value collection parser.

P.s.: More useful macros you can find here.

§Examples:

let (k, v) = ("one", 1);
    
let map = map! {
    k => v,
    "two": 2,
    "three" => 3,
    "four": 4,
};

assert_eq!(map, [("one", 1), ("two", 2), ("three", 3), ("four", 4)])

§Licensing:

Distributed under the MIT license.

§Feedback:

You can contact me via GitHub or send a message to my Telegram @fuderis.

This library is constantly evolving, and I welcome your suggestions and feedback. See the documentation here macron documentation

Macros§

map
The key-value collection parser