Smart pointers like Box, Rc, and Arc help you manage memory in Rust. This guide shows you how to choose the right one for your situation. It covers ownership, threads, and reference cycles in plain language.
You will learn when to use each pointer and avoid common mistakes. The decision flowchart makes it easy to pick the correct type. This is useful for anyone writing Rust code that needs heap allocation or shared data.
Beginners and experts alike can benefit from these clear rules. No need to guess between Rc and Arc or worry about memory leaks again.
Global
mkdir -p ~/.claude/skills/m02-resourceProject
mkdir -p .claude/skills/m02-resourceSource Repository
Typescript Advanced Typeswshobson/agents
Master advanced TypeScript types for safer and more flexible code
Python Executorqu-skills/skills
Execute Python code safely with 100+ libraries for data, scraping, and media
Golang Error Handlingsamber/cc-skills-golang
Learn to create, wrap, inspect, and log Go errors like a professional engineer
Golang Performancesamber/cc-skills-golang
Speed up your Go code using proven patterns for allocation reduction and CPU efficiency
Golang Design Patternssamber/cc-skills-golang
Idiomatic Go patterns for clean constructors error handling and graceful shutdown
Golang Concurrencysamber/cc-skills-golang
Write safe Go concurrency with goroutines, channels, and sync primitives
Golang Contextsamber/cc-skills-golang
Master Go context for cancellations, timeouts, and request values
Golang Data Structuressamber/cc-skills-golang
Optimize Go data structures for speed and memory efficiency with internals knowledge