Rust smart pointers: Box, Rc, RefCell and interior mutability

11 steps · about 5 h 15 min · Intermediate

  1. Rust from Zero #10: smart pointers - Box, Rc & RefCell (video, YouTube, 8 min)

    A roughly 6-minute overview of why smart pointers exist, so the later details have a frame to hang on.

  2. Smart Pointers · MeowyTheDev companion guide (guide, Zero to Rust, 15 min)

    A gentle written walk-through of Box, Rc and RefCell with a simple table for picking the right one.

  3. RefCell<T> and the Interior Mutability Pattern - The Rust Programming Language (doc, doc.rust-lang.org (The Rust Book), 25 min)

    The official explanation of interior mutability, runtime borrow checking and the Rc<RefCell<T>> combination.

  4. Smart Pointers and Interior Mutability - Rust for C/C++ Programmers (tutorial, Microsoft RustTraining, 25 min)

    Adds Cell vs RefCell trade-offs and a hands-on exercise on shared ownership.

  5. How to Use Smart Pointers in Rust (blog, OneUptime, 15 min)

    Gives a decision flow for picking a pointer and a parent/child tree example using Rc and RefCell.

  6. Understand Rust's Rc, RefCell, Cell, OnceCell & LazyCell Like a Pro! (video, YouTube, 20 min)

    Widens the picture to the other cell types so you know which tool fits which case.

  7. Learn Rust Smart Pointers and Interior Mutability by Building Git Commit Graph Viewer (tutorial, sheerluck.dev, 40 min)

    Applies Rc<RefCell<T>> and Weak to a real graph-shaped project, where these types earn their keep.

  8. Understanding Weak Reference Pointer in Rust Memory Management (video, YouTube, 12 min)

    Covers Weak, which breaks the reference cycles that Rc and RefCell can create.

  9. Smart Pointers and Interior Mutability (Rust Patterns) (reference, Microsoft RustTraining on GitHub, 20 min)

    A compact cheat sheet that puts Box, Rc, Arc, Cell, RefCell and Cow side by side.

  10. Rust Smart Pointers: Box, Rc, Arc & RefCell (2026) (article, SharpSkill, 15 min)

    Extends to threads, where Arc and Mutex replace Rc and RefCell, and includes review questions.

  11. Crust of Rust: Smart Pointers and Interior Mutability (video, YouTube (Jon Gjengset), 2 h)

    Re-implements Cell, RefCell and Rc from scratch, which shows how the unsafe internals make the safe API work.