Expand description
Ordered map optimized for starlark-rust use cases.
Modules§
- ordered_
map SmallMapwhich considers iteration order important for equality and hash.- ordered_
set SmallSetwhich 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
IndexMapwith two changes: - small_
set - Ordered set.
- sorted_
map SmallMapwhich asserts that its elements are sorted.- sorted_
set SmallSetwhich asserts that its elements are sorted.- sorted_
vec Vecwith elements sorted.- unordered_
map HashMapthat does not expose insertion order.- unordered_
set HashSetthat does not expose insertion order.- vec2
- A
Vec<(A, B)>like object which storesAandBseparately.
Macros§
- smallmap
- Create a
SmallMapfrom a list of key-value pairs. - smallset
- Create a
SmallSetfrom 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 BuildHasherimplementation which producesStarlarkHasher.
Traits§
- Equivalent
- Key equivalence trait.