Ruta de aprendizaje

Ownership y borrowing

Movimientos, referencias, slices, lifetimes y punteros inteligentes: las ideas que dan a Rust seguridad de memoria sin recolector de basura.

5 lecciones · 7 retos

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