As a part of Memory Management in Rust, the rules for ownership of a value are:
- Every value in Rust has a variable called owner
- A value only has one owner at a time
- When an owner drops out of scope, the value is dropped
As a part of Memory Management in Rust, the rules for ownership of a value are: