Rc and RefCell Smart Pointers - Rust

Rc and RefCell Smart Pointers - Rust

9.287 Lượt nghe
Rc and RefCell Smart Pointers - Rust
00:00:00 Prologue 00:00:20 What is the Rc Smart Pointer? 00:01:50 Breaking the Single Ownership Rule 00:05:40 What is the RefCell Smart Pointer? 00:07:20 Breaking the Mutability Rule 00:11:00 Mutating Data with Several Owners 00:14:10 Rc and RefCell can Leak Memory 00:20:20 Preventing a Memory Leak by Using Weak Instead of Rc Chapters 15.4, 15.5, and 15.6 - danlogs git repository: https://github.com/danbugs/danlogs/ - danlogs discord server: https://discord.gg/fSWE49H - Follow me on Twitter: https://twitter.com/danologue/ - Follow me on GitHub: https://github.com/danbugs/ - For business inquiries, contact me on LinkedIn: https://www.linkedin.com/in/danbiz