/rust-book

Code written as part of reading the Rust book

Primary LanguageRustMIT LicenseMIT

Ownership

Rust ownership consists of mainly 3 concepts:

  1. Ownership
  2. Reference and Borrowing
  3. Lifetimes

Allows:

  • to avoid segmentation faults without using a garbage collector
  • to avoid dataraces while having threads