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.

Usage

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; ```