Skip to content

Glossary: Rust Basics

Key-value pair

Also written: key-value pairs, key

A key, like a product name, stored with the value it looks up, like a stock count. A `HashMap` is made of these pairs.

Where the book teaches it

Related terms

HashMap