Flagship
rs
Rust
Ownership, traits, error handling and fearless concurrency
15 topics 7 sections Rust 1.98 beginner → advanced
All beginner intermediate advanced
show All Unread Read
01 · Basics
5 topics Collections Choose Rust's standard collections by ordering, uniqueness, lookup, and range semantics, then handle ownership, Entry, and iteration correctly. intermediate 12 min Iterators Understand Rust iterator ownership, lazy adapters, short-circuiting, error propagation, and the contract of a custom Iterator. intermediate 12 min Modules and crates Distinguish Cargo packages, crates, and modules, then use paths, visibility, and re-exports to design a stable Rust API. intermediate 16 min Pattern matching Use exhaustive matches, destructuring, guards, and binding patterns while avoiding hidden wildcard cases and accidental moves. intermediate 15 min Strings Understand String and str ownership, UTF-8 byte boundaries, Unicode text units, and when a string API should borrow or allocate. intermediate 15 min
02 · Ownership and borrowing
9 topics Borrowing rules How shared and mutable references access values without taking ownership, why borrows conflict, and how to resolve borrow-checker errors. intermediate 12 min Box, Rc and Arc How Rust's Box, Rc, Arc, and Weak model heap ownership, shared ownership, thread-safe sharing, mutation, and non-owning links. intermediate 15 min Cell and RefCell Use Cell value replacement and RefCell runtime borrowing to model interior mutability without hiding borrow conflicts or thread boundaries. intermediate 19 min Closures Learn how Rust closures capture their environment, acquire Fn traits, and express ownership in generics, return values, threads, and dynamic dispatch. intermediate 15 min Lifetime elision and annotations Express relationships among references precisely with lifetime parameters, elision, borrowed structs, 'static, and higher-ranked bounds. advanced 13 min Lifetimes Lifetimes describe where references remain valid; understand inference, annotations, elision, 'static, and higher-ranked bounds to design precise borrowed APIs. advanced 17 min Moves, partial moves and drops Track moves, copies, borrows, partial moves, and drops so each Rust value has one clear owner at every program point. intermediate 15 min Ownership Rust uses ownership, moves, copies, and deterministic destruction to govern resources; learn when values transfer, borrow, and drop. beginner 18 min Smart pointers Rust smart pointers combine indirection with ownership, sharing, and destruction; understand the real boundaries of Deref, Drop, and wrappers. intermediate 14 min