Module structures::set
source · Expand description
§Set
Contains a ‘SetCollection’ trait for implementing a set, as well as a default implementation of a set called ‘Set’. This also contains implementations of the following: HashSet. A ‘set’ is an unordered group of elements that only contain unique elements.
Structs§
- A set of keys that are hashed for faster retrieval.
- A collection of unordered items that cannot contain any duplicates. This can be a finite number of items, or an infinite number of items. Infinite ‘sets’ are created by marking a ‘set’ as a complement of its elements, meaning that the ‘set’ contains all elements except the elements listed in the ‘set’.