Crate starlark_map
source ·Expand description
Ordered map optimized for starlark-rust use cases.
Modules§
SmallMap
which considers iteration order important for equality and hash.SmallSet
which considers order important for equality and hash.- A Map with deterministic iteration order that specializes its storage based on the number of entries to optimize memory. This is essentially
IndexMap
with two changes: - Ordered set.
SmallMap
which asserts that its elements are sorted.SmallSet
which asserts that its elements are sorted.Vec
with elements sorted.HashMap
that does not expose insertion order.HashSet
that does not expose insertion order.- A
Vec<(A, B)>
like object which storesA
andB
separately.
Macros§
Structs§
- A key and its hash.
- A hash value.
- A hasher used by Starlark implementation.
BuildHasher
implementation which producesStarlarkHasher
.
Traits§
- Key equivalence trait.