Rc and RefCell Smart Pointers - Rust
danlogs
0:00 / 0:00
Rc and RefCell Smart Pointers - Rust
11 211 просмотров · 4 года назад
danlogs
3,29 тыс. подписчиков
11 211 просмотров · 4 года назад
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: / discord
Follow me on Twitter: / danologue
Follow me on GitHub: https://github.com/danbugs/
For business inquiries, contact me on LinkedIn: / danbiz