frequency-hashmap

Crates.iofrequency-hashmap
lib.rsfrequency-hashmap
version1.1.0
sourcesrc
created_at2017-03-25 17:01:29.909623
updated_at2017-03-25 17:14:48.127297
descriptionA counter for observations of things, backed by a HashMap.
homepage
repositoryhttps://gitlab.com/jswrenn/frequency
max_upload_size
id9148
size9,245
Jack Wrenn (jswrenn)

documentation

https://docs.rs/frequency-hashmap/

README

The Frequency trait represents types that keep track of the observed counts of items. The HashMapFrequency type is a frequency counter backed by a HashMap.

Usage

Add frequency and frequency-hashmap to your Cargo.toml:

[dependencies]
frequency = "^1.0.0"
frequency-hashmap = "^1.0.0"

Import both Frequency and HashMapFrequency:

extern crate frequency;
extern crate frequency_hashmap;

use frequency::Frequency;
use frequency_hashmap::HashMapFrequency;
Commit count: 4

cargo fmt