Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Owner, ownership?

Também chamado de: owner (Rust) · ownership

Definition 6.1 University Computer Science — Year 2 · Capítulo 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.

Ler no capítulo →