literally 0.1.3

Macro literals for members of std::collections
Documentation
  • Coverage
  • 100%
    8 out of 8 items documented8 out of 8 items with examples
  • Size
  • Source code size: 20.04 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.2 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • estk/literally
    24 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • estk

When you literally just want a literal of the std::collections types.

# use std::collections::{HashMap, HashSet};
# use literally::{hmap, hset};
let m: HashMap<String, HashSet<String>> = hmap!{
    "key" => hset!{
        "value"
    }
};
assert_eq!(m.get("key").unwrap().get("value"), Some(&"value".to_string()))