Glossary: System Design Beyond the Basics in Rust
BTreeMap
Also written: BTreeSet
Rust's map (and set, `BTreeSet`) type that keeps its keys in sorted order. Iterating or printing it gives a stable, predictable order, unlike a `HashMap`.
Glossary: System Design Beyond the Basics in Rust
Also written: BTreeSet
Rust's map (and set, `BTreeSet`) type that keeps its keys in sorted order. Iterating or printing it gives a stable, predictable order, unlike a `HashMap`.