Rust Sharp Edges

Copy vs Clone, ! type, Pin, Cow, and patterns the book glosses over.

Ownership is not the end of the story. Learn when Copy lies to you, why ! is a type, stack pinning basics, Cow for zero-copy APIs, and repr patterns for FFI-safe newtypes.

Learn with Ada, your AI coding mentor — ask questions or tap I’m stuck in any lesson for a nudge without spoilers.

Practitioner6 lessons~4h
First lesson free

Try lesson 1 without an account. Sign in to unlock the remaining 5 lessons and save progress.

Course content

Type Semantics

  • Copy vs Clone vs Move in Public APIsFree16 min
  • 🔒The Never Type (!) and Diverging Functions14 min

Performance

  • 🔒Cow — Clone on Write Without Drama15 min

FFI & Safety

  • 🔒repr(transparent) and Newtype Patterns16 min

Under the Hood

  • 🔒const, static, and Lazy Initialization15 min

Async & Self-Referential

  • 🔒Pin — Why async Needs It (Basics)18 min