Languages & Runtimes
Rust
Rust's big idea — memory safety without a garbage collector — explained from scratch: ownership, borrowing and lifetimes, structs, enums and pattern matching, traits and generics, error handling, smart pointers, fearless concurrency and async.
3 modules 9 lessons ~1 h of reading
Start learning
0/9 completed
01
Foundations
4 lessons- 1Rust BasicsWhy Rust exists, cargo, variables and mutability, scalar and compound types, functions and expressions, control flow, strings (String vs &str), vectors, and how Rust code is organised into crates and modules.beginner2 min
- 2OwnershipRust's central idea — every value has one owner, ownership moves on assignment, values are dropped when their owner goes out of scope — plus Copy vs move types, Clone, stack vs heap, and how this replaces garbage collection.intermediate3 min
- 3Borrowing & LifetimesReferences without taking ownership — shared and mutable borrows, the aliasing XOR mutability rule, the borrow checker and non-lexical lifetimes, dangling references, slices, lifetime annotations and elision, and 'static.intermediate3 min
- 4Structs, Enums & Pattern MatchingDefining data in Rust — structs and impl blocks, methods and associated functions, enums with data (algebraic data types), Option instead of null, exhaustive match, if let, let-else, and modelling state with types.intermediate2 min
02
Abstractions
3 lessons- 5Traits & GenericsShared behaviour with traits, default methods, generics and trait bounds, impl Trait, static dispatch (monomorphisation) vs dynamic dispatch (dyn Trait), associated types, operator overloading, derive, and the orphan rule.intermediate3 min
- 6Error Handling in RustRecoverable errors with Result, the ? operator, panics for bugs, custom error types, From conversions, thiserror and anyhow, Option/Result combinators, and when unwrap is acceptable.intermediate2 min
- 7Smart PointersBox, Rc, Arc, RefCell, Cell, Weak and Cow — heap allocation, shared ownership, interior mutability, reference cycles, and how Deref and Drop make smart pointers work.advanced3 min
03
Concurrency
2 lessons- 8Fearless ConcurrencyHow Rust prevents data races at compile time — threads and move closures, Send and Sync, Arc with Mutex and RwLock, atomics, channels, scoped threads, and data parallelism with Rayon.advanced3 min
- 9Async RustAsynchronous programming in Rust — futures as lazy state machines, async/await, polling and wakers, executors and the Tokio runtime, spawning tasks, select and join, Pin in brief, blocking pitfalls, and when to use async.advanced3 min