literal 0.2.0

Literals for Rust's collections
Documentation
  • Coverage
  • 53.33%
    8 out of 15 items documented6 out of 14 items with examples
  • Size
  • Source code size: 13.02 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.36 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • JohnBSmith/literal
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • JohnBSmith

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);
}