Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Weak reference | Learn Rust part 57

1.4K views on YouTube

Difference between strong and weak references in the smart pointer Rc from Rust

0:00 Intro
1: 00 Memory leak
1:25 Review of Rc smart pointer
3:34 Memory leak example
7:14 Weak reference
10:49 Fix memory leak in a reference cycle

Rc

RefCell

Code https://github.com/t4sk/hello-rust
Course https://www.smartcontract.engineer/

Follow
https://odysee.com/@SmartContractProgrammer:8

https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com