
Rust for Beginners with Nell Shamrell-Harrington
Hanselminutes with Scott Hanselman
00:00
The Ownership and Borrowing System in Russ
Rust has a unique ownership and borrowing system. The intent of that is to prevent you from having vulnerabilities like dangling pointers. By default, variables in rust are non mutatable. You have to explicitly say you're allowing mutating of it. But borrowing is a way that i can access that value, potentially use that value in another function - but still have the overall ownerships with the original variable.
Transcript
Play full episode