Box, Rc, Arc, and RefCell: Choosing the Right Smart Pointer in Rust

In Rust, references (& and &mut) are just pointers that borrow data. Smart pointers, on the other hand, are data structures that act like…