Rust Smart Pointers and Interior Mutability

Box<T> provides heap ownership, Rc<T> and Arc<T> provide shared ownership, and RefCell<T> or synchronization primitives enable controlled interior mutability. Each has distinct ownership, thread-safety, and runtime-cost trade-offs.