Rust learning path

Ownership and Borrowing

Understand what makes Rust different: ownership, moves, references, slices, lifetimes and smart pointers.

Try Rust online

5 lessons

Lifetimes

Tell the compiler how long references stay valid with lifetime annotations.

View lesson →