Ownership Rules
- Each value in Rust has a variable that’s called its owner.
- There can only be one owner at a time.
- When the owner goes out of scope, the value will be dropped.
Borrowing
- Passing reference to a function.
- Reference is immutable by default.
- Cannot borrow mutable reference more than once at a time.