RustBeginner
Rust
Learn Rust from scratch: ownership, borrowing, traits and safe concurrency. Code compiled and run on the server.
11 chapters44 lessons22 challenges
Course curriculum
Chapter 1: Basics and syntax
- ▸Variables and immutability
- ▸Data types
- ▸Functions and expressions
- ▸println! and formatting
Chapter 2: Control flow
- ▸if as an expression
- ▸loop and while
- ▸for and range
- ▸match
Chapter 3: Ownership
- ▸What ownership is
- ▸Move
- ▸Copy and clone
- ▸Ownership and functions
Chapter 4: Borrowing and references
- ▸References &
- ▸Mutable references &mut
- ▸The borrow checker rules
- ▸Slices
Chapter 5: Structs and methods
- ▸Defining a struct
- ▸Methods with impl
- ▸Associated functions
- ▸derive and Debug
Chapter 6: Enums and pattern matching
- ▸Basic enums
- ▸Enums with data
- ▸Option<T>: no null
- ▸match and if let on enums
Chapter 7: Collections
- ▸Vec<T>
- ▸String and &str
- ▸HashMap
- ▸Iterators
Chapter 8: Error handling
- ▸panic!
- ▸Result<T, E>
- ▸The ? operator
- ▸unwrap, expect, unwrap_or
Chapter 9: Traits and generics
- ▸Generics <T>
- ▸Traits
- ▸Trait bounds
- ▸Useful standard traits
Chapter 10: Advanced Rust
- ▸Closures
- ▸Advanced iterators
- ▸Box<T> and smart pointers
- ▸Lifetimes (overview)
Chapter 11: Concurrency
- ▸Threads
- ▸move and ownership across threads
- ▸Channels (mpsc)
- ▸Shared state: Arc<Mutex<T>>
Ready to level up?
Create a free account and start now: earn XP on every challenge and climb the leaderboard.