Understanding Ownership
Article Outline
TOC
Collection Outline
The Rust Programming Language
The Rust Programming Language Foreword Introduction
Getting started
Basic Rust Literacy
Thinking in Rust
Advanced Topics
Understanding Ownership
Ownership is Rust’s most unique feature, and it enables Rust to make memory safety guarantees without needing a garbage collector. Therefore, it’s important to understand how ownership works in Rust. In this chapter, we’ll talk about ownership as well as several related features: borrowing, slices, and how Rust lays data out in memory.