#collection #hash-map #b-tree #set #hash #map

sixarm_collections

Collections for HashMapToSet and BTreeMapToSet as trait extensions. By SixArm.com.

2 stable releases

1.1.1 Mar 30, 2021
1.1.0 Mar 24, 2021

#11 in #btree

24 downloads per month

MIT OR Apache-2.0 OR GPL-2.0-only

25KB
359 lines

SixArm.com collections Rust crate

This crate provides two general-purpose collections helpers:

  • BTreeMapToSet<K, V> is based on BTreeMap<K, BTreeSet>

  • HashMapToSet<K, V> is based on HashMap<K, HashSet>

This crate provides two specific-purpose collections helpers:

  • BTreeMapOfFileLenToSetOfPathBuf is based on BTreeMap<u64, BTreeSet>

  • HashMapOfFileLenToSetOfPathBuf is based on HashMap<u64, HashSet>

The helpers are implemented as trait extensions i.e. the helpers add functions to existing Rust std::collections code.

Tracking

Contact: Joel Parker Henderson joel@joelparkerhenderson.com

License: GPL-2.0 or Apache-2.0 or MIT

Dependencies

~7KB