Sign in

Module 10

Smart Pointers

Start module

PHP's garbage collector and reference counting handle shared data for you, but Rust makes you pick the right tool. In this module, we'll look at how smart pointers differ from plain references, then work through Box, Rc and RefCell, before moving on to the thread-safe Arc, Mutex and RwLock.

  1. 1

    References vs Smart Pointers

  2. 2

    Box

  3. 3

    Rc

  4. 4

    RefCell

Coming soon to this module

  • Arc
  • Mutex
  • RwLock