Glossary coding Term Page
Ownership
A rule system that assigns clear responsibility for each value
Core Idea
Ownership is the rule set that tracks who is currently responsible for using and cleaning up a value. Rust relies on this system to provide memory safety without a garbage collector.
The key idea is explicit responsibility. Assigning a value, passing it into a function, or returning it may transfer that responsibility rather than merely copy bytes. The distinction becomes especially visible with heap-backed data such as strings, and it sets up the next concept: borrowing.
Why It Matters Here
Mathbong treats ownership as the main safety axis of Rust basics. It is the concept that first shows learners how many memory mistakes can be prevented at compile time instead of being debugged after the fact.