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

Borrow rules | Learn Rust part 23

2K views on YouTube

Ownership rules in Rust explained

0:00 Intro
0:45 Immutable borrow
1:28 Mutable borrow
2:53 One mutable reference at a time
5:03 Cannot have immutable and mutable references at the same time
5:47 Reference cannot outlive the value

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