Core Concepts ​
Updated Mar 2026Foundational Rust concepts explained in depth with real code examples. Read these to build solid mental models.
Concepts Index ​
| Concept | Description |
|---|---|
| Variables & Types | Immutability, shadowing, scalars, compounds, type inference |
| Structs & Enums | Data modeling with structs, enums, Option, Result |
| Modules & Crates | Code organization, visibility, the module tree |
| Closures & Iterators | Fn traits, capture modes, iterator chains |
| Memory Model | Stack vs heap, ownership, RAII, and the drop order |