検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 193 for let (0.027 sec.)
Rust By Example 日本語版 13190
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... intln!("Hello, world!"); // Run it. See? Now try deleting the two slashes, and run it again. // でしょ?で ... h block comments // than with line comments. Try deleting the comment delimiters // to change the result: ... 場合、ブロックコメントがなくなれば結果が変わります。 let x = 5 + /* 90 + */ 5; println!("Is `x` 10 or 100? ...
https://man.plustar.jp/rust/example/print.html - [similar]
if let - Rust By Example 日本語版 11299
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... lt) Rust Coal Navy Ayu Rust By Example 日本語版 if let 列挙型をマッチさせるとき、場合によっては match を使 ... ` // `optional`という変数の型を`Option<i32>`に指定 let optional = Some(7); match optional { Some(i) => { ... ので必要。 // 冗長に見えませんか? }; } この場合は if let を用いたほうが美しく、失敗時の処理も柔軟に行うこと ...
https://man.plustar.jp/rust/example/flow_control/if_let.html - [similar]
文字列 - Rust By Example 日本語版 9463
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... / read only memory上に割り当てられた文字列への参照 let pangram: &'static str = "the quick brown fox jumps ... es // 文字をベクトルにコピー。ソートして重複を除去 let mut chars: Vec<char> = pangram.chars().collect(); ... e `String` // 中身が空で、伸長可能な`String`を作成 let mut string = String::new(); for c in chars { // In ...
https://man.plustar.jp/rust/example/std/str.html - [similar]
while let - Rust By Example 日本語版 8496
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... Rust Coal Navy Ayu Rust By Example 日本語版 while let if let と同様に、 while let も不格好な match 処理を ... e `Option<i32>` // `Option<i32>`の`optional`を作成 let mut optional = Some(0); // Repeatedly try this tes ... 書く必要が?もっと良い方法があるはずです! } } } while let の使用によってベターになります。 fn main() { // Ma ...
https://man.plustar.jp/rust/example/flow_control/while_let.html - [similar]
Resultをイテレートする - Rust By Example 日本語版 7953
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... ションは失敗することもあります。例えば、 fn main() { let strings = vec!["tofu", "93", "18"]; let numbers: V ... 結果が None になるものだけ取り除きます。 fn main() { let strings = vec!["tofu", "93", "18"]; let numbers: V ... つかり次第、イテレーションは終了します。 fn main() { let strings = vec!["tofu", "93", "18"]; let numbers: R ...
https://man.plustar.jp/rust/example/error/iter_result.html - [similar]
構造体 - Rust By Example 日本語版 7735
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... rthand // 構造体をフィールド初期化の簡略記法で生成 let name = String::from("Peter"); let age = 27; let pe ... Instantiate a `Point` // `Point` のインスタンス化 let point: Point = Point { x: 10.3, y: 0.4 }; // Acces ... の構造体のフィールドの値を基に // 新たなpointを生成 let bottom_right = Point { x: 5.2, ..point }; // `bott ...
https://man.plustar.jp/rust/example/custom_types/structs.html - [similar]
refパターン - Rust By Example 日本語版 7681
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... Coal Navy Ayu Rust By Example 日本語版 refパターン let を介してデストラクトやパターンマッチングを行う場合 ... Copy)] struct Point { x: i32, y: i32 } fn main() { let c = 'Q'; // A `ref` borrow on the left side of an ... による借用と、右辺に`&`をつけることによる借用は等価 let ref ref_c1 = c; let ref_c2 = &c; println!("ref_c1 ...
https://man.plustar.jp/rust/example/scope/borrow/ref.html - [similar]
要素の捕捉 - Rust By Example 日本語版 7312
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... 必要なときのみ取得します。 fn main() { use std::mem; let color = String::from("green"); // A closure to pri ... 与えれば機能するので、これ以上なにかする必要はない。 let print = || println!("`color`: {}", color); // Call ... 対するイミュータブルな参照しか保持しないからである。 let _reborrow = &color; print(); // A move or reborrow ...
https://man.plustar.jp/rust/example/fn/closures/capture.html - [similar]
タプル - Rust By Example 日本語版 7203
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... fn reverse(pair: (i32, bool)) -> (bool, i32) { // `let` can be used to bind the members of a tuple to var ... iables // `let`でタプルの中の値を別の変数に束縛することができる。 ... let (integer, boolean) = pair; (boolean, integer) } // ...
https://man.plustar.jp/rust/example/primitives/tuples.html - [similar]
Iterator::find - Rust By Example 日本語版 7040
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... す。 P: FnMut(&Self::Item) -> bool {} } fn main() { let vec1 = vec![1, 2, 3]; let vec2 = vec![4, 5, 6]; // ... // ベクトル型に対する`iter`は`&i32`を`yield`する。 let mut iter = vec1.iter(); // `into_iter()` for vecs ... 32`. // `inter_iter()`の場合は`i32`を`yield`する。 let mut into_iter = vec2.into_iter(); // `iter()` for ...
https://man.plustar.jp/rust/example/fn/closures/closure_examples/iter_find.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT