Crate frequency_ordermap [] [src]

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:

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;



A frequency counter backed by an OrderMap