countmap 0.2.0

Simple map to count occurences of supplied keys
Documentation
  • Coverage
  • 100%
    26 out of 26 items documented23 out of 25 items with examples
  • Size
  • Source code size: 35.64 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.53 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • vbrandl/countmap
    0 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • vbrandl

CountMap

Travis Build Status License License crates.io

Implementation of a count map in Rust. A map that holds a counter as a value, that gets incremented each time the key is added to the map. This implementation simply decorates the HashMap from the Rust std library.

Documentation

Usage

Add the following to your Cargo.toml:

[dependencies]
countmap = "0.1"

Next, add this to your crate root:

extern crate countmap;

Now you can use a count map in your code:

fn main() {
	let map = countmap::CountMap::new();
	map.insert_or_increment("foo");
}

License

Countmap is licensed under either of the following, at your option: