Skip to content

Core Concepts ​

Updated Mar 2026

Foundational Rust concepts explained in depth with real code examples. Read these to build solid mental models.

Concepts Index ​

ConceptDescription
Variables & TypesImmutability, shadowing, scalars, compounds, type inference
Structs & EnumsData modeling with structs, enums, Option, Result
Modules & CratesCode organization, visibility, the module tree
Closures & IteratorsFn traits, capture modes, iterator chains
Memory ModelStack vs heap, ownership, RAII, and the drop order

Built with VitePress | Rust SOP Documentation