Registry / utility / counter

counter

JSON →
library0.7.1rscratesunverified

Simple package to count generic iterables, providing frequency counts of elements.

# Cargo.toml [dependencies] counter = "0.7.1"
INSTALL
IMPORT
SIG · COUNTER
C
counter
utilityrustv0.7.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Counter
use counter::Counter;

Counts occurrences of elements in an iterator and prints the frequency map.

use counter::Counter; let counts = vec!["a", "b", "a", "c", "b", "b"].into_iter().collect::<Counter<_>>(); println!("Counts: {:?}", counts);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.7.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
counter — cargo add counter · libregistry