Learn Rust: References, Borrowing, and Slices

References let you use data without taking ownership of it, which solves the move problem from the previous episode. This episode covers shared and mutable references, the borrow checker rules, and slices. In this episode: Shared references and mutable references The borrowing rules that prevent data races Avoiding dangling references String and array slices References: https://github.com/willvelida/learn-r... Rustlings exercises: https://github.com/rust-lang/rustlings/ Rust by Example: https://doc.rust-lang.org/rust-by-exa... More ways to learn Rust: https://www.rust-lang.org/learn/ #Rust #RustLang #LearnToCode