frequency-btreemap

Crates.iofrequency-btreemap
lib.rsfrequency-btreemap
version1.0.0
sourcesrc
created_at2017-03-25 17:00:55.586209
updated_at2017-03-25 17:00:55.586209
descriptionA counter for observations of things, backed by a BTreeMap.
homepage
repositoryhttps://gitlab.com/jswrenn/frequency
max_upload_size
id9147
size5,708
Jack Wrenn (jswrenn)

documentation

https://docs.rs/frequency-btreemap/

README

The Frequency trait represents types that keep track of the observed counts of items. The BTreeMapFrequency type is a frequency counter backed by a BTreeMap.

Usage

Add frequency and frequency-btreemap to your Cargo.toml:

[dependencies]
frequency = "^1.0.0"
frequency-btreemap = "^1.0.0"

Import both Frequency and BTreeMapFrequency:

extern crate frequency;
extern crate frequency_btreemap;

use frequency::Frequency;
use frequency_btreemap::BTreeMapFrequency;
Commit count: 4

cargo fmt