Expand description
Ordered map optimized for starlark-rust use cases.
Modules§
- ordered_
map SmallMap
which considers iteration order important for equality and hash.- ordered_
set SmallSet
which considers order important for equality and hash.- small_
map - 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: - small_
set - Ordered set.
- sorted_
map SmallMap
which asserts that its elements are sorted.- sorted_
set SmallSet
which asserts that its elements are sorted.- sorted_
vec Vec
with elements sorted.- unordered_
map HashMap
that does not expose insertion order.- unordered_
set HashSet
that does not expose insertion order.- vec2
- A
Vec<(A, B)>
like object which storesA
andB
separately.
Macros§
- smallmap
- Create a
SmallMap
from a list of key-value pairs. - smallset
- Create a
SmallSet
from a list of values.
Structs§
- Hashed
- A key and its hash.
- Starlark
Hash Value - A hash value.
- Starlark
Hasher - A hasher used by Starlark implementation.
- Starlark
Hasher Builder BuildHasher
implementation which producesStarlarkHasher
.
Traits§
- Equivalent
- Key equivalence trait.