A struct groups named values into one type of your own. This part shows how to define and build structs, how they sit in memory, and how to pick between self, &self and &mut self when you write methods.
A lifetime is the stretch of code where a reference is safe to use. This part reads the errors that mention lifetimes, shows what ‘a says in a function signature, and covers the elision rules, structs that hold references and ‘static.
Holding a reference into a Vec and then calling push is the borrow error almost everyone hits first. This part shows why: push can move the whole buffer, and the reference would be left pointing at freed memory.
A reference lets you use a value without taking it. Rust allows many shared references or one mutable reference, never both at once. This part shows the rule, the errors it causes, and why a borrow ends at its last use.
Every value in Rust has exactly one owner. Assigning a String to another variable moves it, and the old name stops working. This part shows what a move does in memory, why Rust needs it, and how Copy, clone and drop fit in.
Rust has two string types, String and &str, and both hold UTF-8 bytes. This part shows why len counts bytes, why s[0] doesn’t compile, how slicing can panic, and the string methods you’ll use every day.
Tuples group a few values of different types. Arrays hold a fixed number of values of one type, and the length is part of the type. A slice is a view into part of an array, so one function can take any length.
In Rust, blocks, if and even loop produce values. This part covers functions, return values, the semicolon that breaks them, if as a value, loop with break, while, for over ranges and labelled loops.
Rust variables can’t change unless you say mut, every value has a fixed type, and an integer that overflows stops a debug build. This part covers let, mut, shadowing, const, the number types, char, as casts and overflow.
Install Rust, make your first project with cargo, print values with format strings, and learn to read a Rust compiler error line by line. The compiler often tells you the fix.