rust-smart-pointers
Installation
SKILL.md
Rust Smart Pointers
Based on The Rust Programming Language Ch. 15, Effective Rust, and the Nomicon.
When to Use This Skill
- Choosing between stack and heap allocation
- Implementing shared ownership (
Rc/Arc) - Interior mutability (
Cell/RefCell) - Copy-on-write patterns (
Cow) - Pinning for self-referential types (
Pin) - Understanding
Derefcoercions