Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Owner, ownership » ?

Aussi appelé : owner (Rust) · ownership

Definition 6.1 University Computer Science — Year 2 · Chapitre 6 — Rust: Ownership and Borrowing

In Rust, every value has exactly one owner, the variable (or the field, or the element of a collection) that holds it. When the owner goes out of scope, the value is dropped. Ownership is this relation, and the rule that it is unique at every moment.

Lire dans le chapitre →