← Back to Topics
🎯
Smart Pointers & Interior Mutability
Rc, Arc, Weak, Cow and custom smart pointer patterns
4 Patterns
4 Interactive
1 Live Demos
Rc/Arc Usage Patterns
intermediate
When to use each and cycle prevention
🎮 Playground
⚡ Live Demo
rc
arc
+1
Weak Pointers
advanced
Breaking cycles in graph structures
🎮 Playground
weak
graphs
+1
Clone-on-Write (Cow)
intermediate
Zero-copy until mutation needed
🎮 Playground
cow
optimization
+1
Custom Smart Pointers
expert
Building your own Box-like types
🎮 Playground
deref
drop
+1