検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 10 for binding (0.022 sec.)
スコープとシャドーイング - Rust By Example 日本語版 13122
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... {} で囲まれた領域のことです。 fn main() { // This binding lives in the main function // この変数はmain関数内 ... が生息域です。 let long_lived_binding = 1; // This is a block, and has a smaller scope t ... り小さいスコープを持つブロックとなります。 { // This binding only exists in this block // この変数はこのブロック ... 内のみに存在します。 let short_lived_binding = 2; println!("inner short: {}", short_lived_bindi ...
https://man.plustar.jp/rust/example/variable_bindings/scope.html - [similar]
宣言 - Rust By Example 日本語版 10708
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 同時に行われます。 fn main() { // Declare a variable binding // 変数を宣言 let a_binding; { let x = 2; // Initi ... alize the binding // 変数を初期化 a_binding = x * x; } println!("a b ... inding: {}", a_binding); let another_binding; // Error! Use of uninitiali ... zed binding // エラー! 初期化していない変数の使用 println!("an ...
https://man.plustar.jp/rust/example/variable_bindings/declare.html - [similar]
Rust By Example 日本語版 10297
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ", (5u32)); //tuples can be destructured to create bindings //タプルを分解して別の変数にそれぞれの値を代入 le ... m_right.y); // Destructure the point using a `let` binding // `let`を使用してpointをデストラクトする。 let Po ... de/rust-2018/ownership-and-lifetimes/default-match-bindings.html // このメソッドは、`self`の状態によって振る舞 ... unit); // The compiler warns about unused variable bindings; these warnings can // be silenced by prefixing t ...
https://man.plustar.jp/rust/example/print.html - [similar]
ミュータビリティ - Rust By Example 日本語版 9081
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ミュータブルになります。 fn main() { let _immutable_binding = 1; let mut mutable_binding = 1; println!("Before ... mutation: {}", mutable_binding); // Ok mutable_binding += 1; println!("After muta ... tion: {}", mutable_binding); // Error! _immutable_binding += 1; // FIXME ^ Co ... ワード: ミュータビリティ , 関数 , Result , エラー , binding , By , Example , Rust , let , mutable ...
https://man.plustar.jp/rust/example/variable_bindings/mut.html - [similar]
式 - Rust By Example 日本語版 7883
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 種類があります。最も一般的なのは変数の束縛( variable binding )と ; 付きの式( expression )です fn main() { // va ... riable binding // 変数束縛 let x = 5; // expression; // 式; x; x ...
https://man.plustar.jp/rust/example/expression.html - [similar]
バインディング - Rust By Example 日本語版 7669
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... old person of age {:?}", n), } } You can also use binding to "destructure" enum variants, such as Option : f ...
https://man.plustar.jp/rust/example/flow_control/match/binding.html - [similar]
Option - Rust By Example 日本語版 7669
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ain() { try_division(4, 2); try_division(1, 0); // Binding `None` to a variable needs to be type annotated // ...
https://man.plustar.jp/rust/example/std/option.html - [similar]
構造体 - Rust By Example 日本語版 7615
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... m_right.y); // Destructure the point using a `let` binding // `let`を使用してpointをデストラクトする。 let Po ...
https://man.plustar.jp/rust/example/custom_types/structs.html - [similar]
if let - Rust By Example 日本語版 7615
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... :Qux(value) = c { println!("c is {}", value); } // Binding also works with `if let` if let Foo::Qux(value @ 1 ...
https://man.plustar.jp/rust/example/flow_control/if_let.html - [similar]
クロージャ - Rust By Example 日本語版 7615
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 2 { i + 1 } // Closures are anonymous, here we are binding them to references // Annotation is identical to f ...
https://man.plustar.jp/rust/example/fn/closures.html - [similar]
PREV 1 NEXT