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.

Practitioner6 lessons~4h
0/6 complete

Course content

Type Semantics

  • Copy vs Clone vs Move in Public APIs16 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