Smart Pointers & Interior Mutability

Smart pointers combine ownership with pointer-like behavior, while interior mutability provides controlled mutation through shared references.

Concepts

Patterns

Antipatterns

Neighboring Notes

Ownership · Borrowing · The Drop Trait · Arc · Shared State with Mutex · Deref Polymorphism Antipattern · Rc RefCell Overuse

Sources