Skip to content
Sign inGet all access

RustPaid

Ownership, borrowing, lifetimes, and the trait system — the hard parts, early.

20 chapters · ~8.4 hours · 3 free

Chapters

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