Lessons
An introduction to writing Rust
Rust · Introductory. Ten lessons. Open-book quizzes. Lesson 1 free.
10 lessons · The Host · Lesson 1 free
Pass all ten lessons for the certificate. Sample · Claim

Lesson 1 · On the house
Why Rust, and cargo new
A language that fights data races; your first crate.

Lesson 2
Variables and mut
let, mut, and types inferred.

Lesson 3
Ownership move
Values have one owner.

Lesson 4
Borrowing references
ampersand and ampersand-mut.

Lesson 5
Slices and string views
Views into sequences.

Lesson 6
Structs
Named fields together.

Lesson 7
Enums and match
Sum types and exhaustive matching.

Lesson 8
Vectors
Growable arrays Vec<T>.

Lesson 9
Error handling with Result
Propagate with ?.

Lesson 10
A small program
Compose ownership-safe basics.
Sample certificate
Certificate of completion
Sign in to claim your certificate of completion.
Certificate
Finish all ten lessons, then sign in
Pass every lesson on this device (quizzes and checks). Then sign in or create an account to type your name and download the JPG.