#literals

literal

Literals for Rust's collections

2 unstable releases

0.2.0 Dec 22, 2019
0.1.0 Mar 2, 2019

#1974 in Rust patterns

Download history 34/week @ 2024-07-15 40/week @ 2024-07-22 55/week @ 2024-07-29 54/week @ 2024-08-05 57/week @ 2024-08-12 25/week @ 2024-08-19 12/week @ 2024-08-26 59/week @ 2024-09-09 4/week @ 2024-09-16 144/week @ 2024-09-23 106/week @ 2024-09-30 127/week @ 2024-10-07 40/week @ 2024-10-14 118/week @ 2024-10-21 30/week @ 2024-10-28

316 downloads per month

CC0 license

7KB
135 lines

Literals for Rust's collections

use std::collections::HashMap;
use literal::{map,MapLiteral};

fn main() {
    let m: HashMap<String,i32> = map!{"x": 0, "y": 1};
    println!("{:?}",m);
}

No runtime deps