लर्निंग पाथ

Ownership और Borrowing

Move, रेफ़रेंस, slice, lifetime और स्मार्ट पॉइंटर: वे विचार जो garbage collector के बिना Rust को मेमोरी-सुरक्षित रखते हैं।

5 पाठ · 7 चैलेंज

  1. पाठ 1 चैलेंज Ownership and Moves Learn the rule behind Rust's memory safety: every value has one owner.
  2. पाठ 2 चैलेंज References and Borrowing Let a function use a value without taking ownership of it.
  3. पाठ 2 चैलेंज Slices Borrow part of a string or array without copying it.
  4. पाठ 1 चैलेंज Lifetimes Tell the compiler how long references stay valid with lifetime annotations.
  5. पाठ 1 चैलेंज Smart Pointers: Box and Rc Put data on the heap with Box and share ownership with Rc.