Rust Run Day 1: Ownership, References and Borrowing


Details
https://reps.mozilla.org/e/rust-run-day1/
A discussion on Rust's central feature which is Ownership along with References and Borrowing from Chapter 4 of The Rust Programming Language Book.
https://doc.rust-lang.org/book/second-edition/ch04-00-understanding-ownership.html
All programs have to manage the way they use a computer’s memory while running. Some languages have garbage collection that constantly looks for no longer used memory as the program runs; in other languages, the programmer must explicitly allocate and free the memory. Rust uses a third approach: memory is managed through a system of ownership with a set of rules that the compiler checks at compile time.
Attendees are expected to have latest Rust stable/nightly and Cargo installed.

Rust Run Day 1: Ownership, References and Borrowing