Search across all documentation pages
11 pages in this section.
Why Rust's syntax choices - explicit mutability, expressions-as-values, no null, exhaustive matching - exist to serve the ownership model, and why the compiler is a design partner rather than an obstacle.
A one-page tour with runnable snippets covering the essentials before deeper sections.
`let`, `mut`, constants, shadowing, and binding semantics.
Integers, floats, bool, char, tuples, and arrays.
Expression-oriented syntax, return values, and statements vs. expressions.
`if`/`else`, `loop`/`while`/`for`, `break` with values, and labeled loops.
A first look at move semantics before the deep dive.
Borrowing basics, array/string slices, and bounds.
Static typing, inference, and annotations.
`println!`, the `Display`/`Debug` traits, and format specifiers.
The core habits to internalize before advanced topics.