RustPaid
Ownership, borrowing, lifetimes, and the trait system — the hard parts, early.
Chapters
- 01Getting StartedCargo, the edition trap, and let being immutable by default.12 minFree→
- 02Types, Operators and ConversionsThe primitives, the operators, overflow, and every way a number changes type.30 minFree→
- 03Control Flow and Pattern MatchingExhaustive match, destructuring, slice patterns, if let and let else.28 minFree→
- 04OwnershipMove by default, the Copy trait, clone, and reading the borrow checker.20 minPRO→
- 05BorrowingReferences, many readers or one writer, and where a borrow ends.20 minPRO→
- 06Structs, Enums and MethodsYour own types, three receivers, derives, and the enum that carries data.28 minPRO→
- 07Collections and StringsVec, HashMap, Option and the string methods you reach for hourly.28 minPRO→
- 08Error HandlingResult, the question-mark operator, custom error types, and no exceptions.22 minPRO→
- 09TraitsInterfaces, default methods, static versus dynamic dispatch, and the orphan rule.26 minPRO→
- 10GenericsType parameters, what a trait bound is really saying, and monomorphisation.20 minPRO→
- 11Iterators and ClosuresThe three closure traits, laziness, and the adaptors you use daily.26 minPRO→
- 12LifetimesElision, when you must annotate, and what an annotation does not do.16 minPRO→
- 13Smart Pointers and Interior MutabilityBox, Rc, RefCell, and when a guarantee moves to runtime.20 minPRO→
- 14Concurrency and AsyncThreads, channels, Arc and Mutex, then async, tasks and when threads win.30 minPRO→
- 15Modules, Crates and CargoPrivacy, paths, feature flags, workspaces and manifest lints.18 minPRO→
- 16HTTP ClientsRequests with reqwest, the status code that is not an error, uploads and streams.34 minPRO→
- 17HTTP ServersA handler is an async fn, plus uploads, limits and a stream of events.42 minPRO→
- 18The Standard LibraryThe inventory worth knowing, and what std deliberately leaves out.36 minPRO→
- 19Testing and DocumentationTests need no dependency, and the examples in your docs are tests.28 minPRO→
- 20Using Rust WellClippy, the crates you will add, unsafe, and when not to reach for Rust.20 minPRO→