Skip to content

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`.

Where the book teaches it

Related terms

HashMap