Busca en todas las páginas de la documentación
12 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.
Learn Rust fundamentals with 10 runnable examples. Explore basic syntax, variable immutability, scalar types, and program structure.
Learn how Rust handles variables, mutability, and shadowing. Understand let, mut, and constants, and when to use each for clear, local state.
Learn about Rust's scalar types like integers, floats, booleans, and characters. Understand compound types: tuples and fixed-size arrays.
Learn how Rust's expression-oriented syntax evaluates functions, blocks, if, and match to values. Understand statements vs. expressions.
Learn how to use Rust's if/else, loop/while/for, and match for control flow. Discover how loops and branches produce values.
Learn Rust's ownership model: one owner per value, moves transfer responsibility, and borrows allow temporary access under compile-time rules.
Understand Rust references and slices to borrow data, create views into sequences, and safely manipulate arrays and strings without copying.
Learn how Rust's static type system and inference work. Understand when to use explicit type annotations and when the compiler infers types.
Learn to format and print text in Rust using macros like println! and eprintln!, Display/Debug traits, and format specifiers.
Learn Rust best practices for ownership, traits, and error handling. This guide covers foundational habits for bindings, types, functions, and control flow.
A single-page roundup of every highlight bullet from the 11 pages in the Fundamentals section, grouped by source page so you can scan all 38 takeaways without opening each article individually.