Module key

Source
Expand description

Implementations of key-based storage.

Provides tools for mapping, indexing, and efficiently organizing data through unique keys, including maps, sets, and other key-value structures.

Extends: std::{collections}


Macros§

define_static_map
Build a custom static hashmap.

Structs§

BTreeMapalloc
📦 alloc An ordered map based on a B-Tree.
BTreeSetalloc
📦 alloc An ordered set based on a B-Tree.
ExampleStaticMapU16
HashMapdep_hashbrown or std
📦 std? An unordered hash map implemented with quadratic probing and SIMD lookup.
HashSetdep_hashbrown or std
std? An unordered hash set implemented as a HashMap where the value is ()

Enums§

BTreeMapEntryalloc
alloc An ordered map based on a B-Tree.
HashMapEntrydep_hashbrown or std
📦 std? A view into a single entry in a map, which may either be vacant or occupied.
StaticMapEntry
Represents an entry in a static map allowing for in-place mutation or insertion.

Type Aliases§

HashMapFxhash and (std, or dep_hashbrown and hash)
A HashMap using a default Fx hasher.
HashMapStdstd
The HashMap in the standard library.
HashSetFxhash and (std, or dep_hashbrown and hash)
A HashSet using a default Fx hasher.
HashSetStdstd
The HashSet in the standard library.