- Welcome to Module 2: Rust Ownership and Borrowing.
This is an area where Rust differs
from most other languages.
The Rust compiler is very strict
about what happens when you assign one variable to another.
It defines rules about how data is copied
or moved between objects
and how you can reference these objects safely in your code
without having to use low-level pointers.
The motivation is to avoid some of the pitfalls
and errors that are common in C and C++.
This is incredibly important
so we'll discuss the rules carefully and systematically.