RustCurious.com
Rust explained carefully.

For Purchase:  Lesson 5

Boost Your Learning

Destruction

With no garbage collector, Rust relies on deterministic destructors to manage the lifecycle of objects. Write types that safely encapsulate raw resources, reason confidently about the scopes of locks, and understand the limitations of Rust's guarantees around resource leakage.

  • Destructors and the Drop trait
  • Calling C functions with raw pointers
  • Wrapping unsafe operations in a safe API
  • Building a smart pointer with Deref
  • Mutex lock scopes, deadlocks
  • Drop flags, partial moves
  • Atomic types, static variables
  • Protecting resources in embedded firmware
  • Memory leaks and the Rust “Leakpocalypse”
Buy
Stream immediately.