smolmap 0.1.0-alpha.0

A hashmap on the stack.
Documentation
  • Coverage
  • 12.5%
    1 out of 8 items documented0 out of 7 items with examples
  • Size
  • Source code size: 59.1 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.43 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • edg-l/smolmap
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • edg-l

smolmap

A hashmap on the stack in Rust, for fun, not really a serious project for now.

let mut map: SmolMap<u32, u32, 4> = SmolMap::new(RandomState::new());
map.insert(1, 3);
map.insert(2, 2);
map.insert(3, 1);
assert_eq!(map.get(&1), Some(&3));
assert_eq!(map.get(&2), Some(&2));
assert_eq!(map.get(&3), Some(&1));
assert_eq!(map.get(&6), None);