全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Owner, ownership?

又称: owner (Rust) · ownership

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

在原文中阅读 →