Smart Pointers
Boxt For Heap Allocation
- Using Boxt To Store Data On The Heap
- Enabling Recursive Types With Boxes
Deref Trait And Deref Coercion
- Implementing Deref For Custom Types
- Deref Coercions With Functions And Methods
The Drop Trait For Cleanup
- Customizing Drop Behavior
Rct The Reference Counted Smart Pointer
- Using Rct To Share Data
- Cloning Rct Increases The Reference Count
Refcellt And The Interior Mutability Pattern
- Enforcing Borrowing Rules At Runtime
- Combining Rct And Refcellt
- Reference Cycles And Memory Leaks
- Preventing Cycles With Weakt
Shared Ownership With Rc And Arc
- Rc And Arc Shared Ownership And Thread Safety
Smart Pointer Recap Choosing The Right Pointer
- Comparison Of Box Rc Arc Refcell And Mutex