What is Ownership? - The Rust Programming Language
Ownership is a set of rules that governs how a Rust program manages memory. All programs have to manage the way they use a computer’s memory while running. Some languages have garbage collection that constantly looks for no-longer used memory as the program runs; in other languages, the programmer must explicitly allocate and free the memory. Rust uses a third approach: memory is managed through a system of ownership with a set of rules that the compiler checks. If any of the rules are violated, the program won’t compile. None of the features of ownership will slow down your program while it’s running.
What is Ownership? - The Rust Programming Language Keyboard shortcuts Press ← or → to navigate between chapters Press S or / to search in the book Press ? to show this help Press Esc to hide this help Auto Light Rust Coal Navy Ayu The Rust Programming Language What Is Ownership? Ownership is a set of rules that govern how a Rust program manages memory. All programs have to manage the way they use a computer’s memory while running. Some languages have garbage collection that regularly looks for no-longer-used memory as the program runs; in other languages, the programmer must explicitly allocat
Explore this link on the map →saved by
related reading
- References and Borrowing - The Rust Programming Languagedoc.rust-lang.org
- The Slice Type - The Rust Programming Languagedoc.rust-lang.org
- What is Ownership? - The Rust Programming Languagerust-book.cs.brown.edu
- Variables and Mutability - The Rust Programming Languagedoc.rust-lang.org
- Moves, cloning, and copying - Rust for C-Programmersrust-for-c-programmers.com
- A half-hour to learn Rustfasterthanli.me
- Rust Language Cheat Sheetcheats.rs
- Moves - Rust: A Better C++ Than C++thecodedmessage.com
- References and Borrowing - The Rust Programming Languagerust-book.cs.brown.edu
- Validating References with Lifetimes - The Rust Programming Languagedoc.rust-lang.org
- Methods - The Rust Programming Languagedoc.rust-lang.org
- Destroy All Values: Designing Deinitialization in Programming Languages - Faultloregankra.github.io