Crates.io | frequency-ordermap |
lib.rs | frequency-ordermap |
version | 1.0.0 |
source | src |
created_at | 2017-03-25 17:01:50.694222 |
updated_at | 2017-03-25 17:01:50.694222 |
description | A counter for observations of things, backed by an OrderMap. |
homepage | |
repository | https://gitlab.com/jswrenn/frequency |
max_upload_size | |
id | 9149 |
size | 8,369 |
The Frequency
trait represents types that keep track of the
observed counts of items. The OrderMapFrequency
type
is a frequency counter backed by a OrderMap
.
Add frequency
and frequency-ordermap
to your Cargo.toml
:
[dependencies]
frequency = "^1.0.0"
frequency-ordermap = "^1.0.0"
Import both Frequency
and
OrderMapFrequency
:
extern crate frequency;
extern crate frequency_ordermap;
use frequency::Frequency;
use frequency_ordermap::OrderMapFrequency;