Glossary coding Term Page

HashMap

Rust's main key-value collection for fast lookup by key

hashmap #rust#collection#data-structure
Korean version

Aliases

HashMap<K, V>hash map

Prerequisites

Related Concepts

Core Idea

A HashMap is a key-value collection that uses hashing for fast lookup and updates. Instead of scanning values in order, it shines when you need to retrieve or modify data by a specific key.

Why It Matters Here

Mathbong uses HashMaps for topic summaries, grouped notes, and enum-based status tracking. Once paired with loops and iterators, they become one of the most practical data structures in everyday Rust code.

Posts Mentioning This Concept