Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 666 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 666 Bytes
coverY 0
description A few important data structure types and points about data with Rust.

🎋 Data Structures

Ownership

Rust is known for a feature called ownership.

Ownership offers memory-safe guarantees without needing a garbage collector.

Ownership rules:

  • 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.

In the context of Rust functions, Ownership is easier to contextualize.

Learn more