Expand description
A hash multiset implemented as a HashMap where the value is usize.
A mset, multiset, or bag is a set that allows multiple occurances of an
element. This implementation is backed by an underlying HashMap instance
and supports an API similar to set with some additions to make multiple
additions and removals easier and a Cloneconstraint for efficiency of
storage.
See the MultiSet struct documentation for more examples and specific
constraints.
Structs§
- Difference
- A lazy iterator producing elements in the difference of
MultiSets. - Drain
- Element
Counts - An iterator over the element counts of a
MultiSet. - Intersection
- A lazy iterator producing elements in the intersection of
MultiSets. - Into
Iter - An owning iterator over the items of a
MultiSet. - Iter
- An iterator over the items of a
MultiSet. - Multi
Set - A hash multiset implemented as a
HashMapwhere the value isusize. - Symmetric
Difference - A lazy iterator producing elements in the symmetric difference of
MultiSets. - Union
- A lazy iterator producing elements in the union of
MultiSets.
Type Aliases§
- Elements
- An iterator over the elements of a
MultiSet.