Skip to main content

Module map

Module map 

Source
Expand description

Hash map that lives on the stack and spills to the heap.

Provides SmallMap — backed by a heapless::FnvIndexMap on the stack (power-of-two capacity N) and a hashbrown::HashMap on the heap. Both sides use FNV hashing for consistent, low-latency performance.

AnyMap is an object-safe trait abstracting over SmallMap, HashMap, and OrderMap. SmallMapEntry mirrors the standard Entry API for in-place mutation.

Structs§

SmallMap
A map that lives on the stack for N items, then automatically spills to the heap.

Enums§

SmallMapEntry
A wrapper enum that unifies Stack and Heap entries.
SmallMapIntoIter
Wrapper for owning iterators
SmallMapIter
Wrapper for iterators to hide the underlying type difference.

Traits§

AnyMap
A trait for abstraction over different map types (Stack, Heap, Small).