Учебный трек

Владение и заимствование

Перемещение, ссылки, срезы, времена жизни и умные указатели: идеи, которые делают 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.