[−][src]Crate hashbag
An unordered multiset/bag implementation backed by HashMap
.
A bag, unlike a set, allows duplicate values, and keeps track of how many
duplicates each value holds. This type of collection is often referred to
as an unordered multiset (see also C++'s std::unordered_multiset
).
This multiset/bag is implemented using a HashMap<T, usize>
and so requires
that the stored type implements Hash + Eq
.
For usage examples, see the primary type HashBag
.
Structs
Drain | An draining iterator over the distinct items of a |
HashBag | A hash bag implemented as a |
IntoIter | An owning iterator over the distinct items of a |
Iter | An iterator over the items of a |
SetIter | An iterator over the distinct items of a |