Objectives
- Gain an understanding of variable lifetimes, moving, and scopes in Rust
Scopes
Rust is a safe, efficient, systems programming language.
Fortunately rustc
is usually very helpful in suggesting how you can clean up your types.
Gentle Introduction to Rust
Work your way through the second chapter of A Gentle Introduction to Rust. See the Resources section of this website for a pointer (as well as many other references). The root page for A Gentle Introduction to Rust includes installation instructions or you could use a ``Rust Playground''.