Ownership rules[edit source]
The explanation of ownership is a bit fuzzy. I prefer the definition in the official book:
- 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.
This still ignores the fact that ManuallyDrop isn't dropped automatically, and can therefore leak memory, but it's much clearer and more correct than the explanation in this article.