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

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

05 · Concurrency and async

1 topic