Module collections

Module collections 

Source
Available on crate feature collections only.
Expand description

Various general-purpose collection types.

§Purpose

I wrote these types to learn about each of the data structures themselves, but also concepts such as pointers, allocations, iterators and hashing.

§Method

Applicable types here implement Deref<Target = [T]> (and DerefMut), which saves me from writing some of the more repetitive functionality.

Modules§

conscons
contiguouscontiguous
Contiguous collection types. Namely Array and Vector for contiguous collections that vary in size at runtime.
hashcontiguous
Collections based on the Hash trait, including HashMap and HashSet for storing unique values or key-value pairs.
linkedlinked
Linked collection types. Primarily revolves around LinkedList and its accompanying Cursor type.
traitstraits
Collection-related traits. Currently this only includes SetInterface and SetIterator for generalizing various parts of the set functionality. If no other traits are added, I will (re)move this module.