Crates.io | frequency-hashmap |
lib.rs | frequency-hashmap |
version | 1.1.0 |
source | src |
created_at | 2017-03-25 17:01:29.909623 |
updated_at | 2017-03-25 17:14:48.127297 |
description | A counter for observations of things, backed by a HashMap. |
homepage | |
repository | https://gitlab.com/jswrenn/frequency |
max_upload_size | |
id | 9148 |
size | 9,245 |
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
.
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;