Skip to main content

LinearMap

Type Alias LinearMap 

Source
pub type LinearMap<K, V, const N: usize> = LinearMapInner<K, V, VecStorageInner<[MaybeUninit<(K, V)>; N]>>;
Expand description

A fixed capacity map/dictionary that performs lookups via linear search.

Note that as this map doesn’t use hashing so most operations are O(n) instead of O(1).

Aliased Type§

pub struct LinearMap<K, V, const N: usize> { /* private fields */ }