Skip to content

Glossary: Rust Beyond the Basics

HashMap

A collection that stores key-value pairs and looks up a value quickly by its key. In the order service, a `HashMap` keyed by order id finds each stored order.

Where the book teaches it

Related terms

collect