frequency-ordermap

Crates.iofrequency-ordermap
lib.rsfrequency-ordermap
version1.0.0
sourcesrc
created_at2017-03-25 17:01:50.694222
updated_at2017-03-25 17:01:50.694222
descriptionA counter for observations of things, backed by an OrderMap.
homepage
repositoryhttps://gitlab.com/jswrenn/frequency
max_upload_size
id9149
size8,369
Jack Wrenn (jswrenn)

documentation

https://docs.rs/frequency-ordermap

README

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;
Commit count: 4

cargo fmt