Rust part13at TECHRust part13 - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト1002:デフォルトの名無しさん 22/02/12 00:19:59.58 kNBFVDwU.net とりあえずbookの 4.1. What is ownership? (ttps://doc.rust-lang.org/book/ch04-01-what-is-ownership.html) からOwnership Rulesの節を丸ごと抜いてきた(訳は適当) Ownership Rules First, let’s take a look at the ownership rules. Keep these rules in mind as we work through the examples that illustrate them: * Each value in Rust has a variable that’s called its owner. * There can only be one owner at a time. * When the owner goes out of scope, the value will be dropped. まずは所有権(ownership)に関するルールを見てみよう このルールを記憶に留めて以下の例示を読み進めてほしい ・Rustの各々の値(value)は所有者(owner)と呼ばれる1つの変数(variable)をもつ ・所有者は同時に1つしか存在しない ・その所有者がスコープからいなくなる時、その値は破棄される 1003:デフォルトの名無しさん 22/02/12 00:26:03.97 lHDa3hl7.net >>982 これが正解 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch