検索
Results of 1 - 10 of about 193 for 処理 (0.004 sec.)
- Rust By Example 日本語版 11201
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...の延期 20.6. ファイルシステムとのやり取り 20.7. 引数処理 ❱ 20.7.1. 引数のパース 20.8. 他言語関数インターフェ...te! が別々の fmt::Result を生成するためです。適切に処理するためには すべての resultに対して処理を書かなくて...is {:?}", y); println!("z is {:?}", z); } 条件分岐 処理の流れをコントロールすることはあらゆるプログラミング...ree"); // Skip the rest of this iteration // 残りの処理をスキップ continue; } println!("{}", count); if cou... - https://man.plustar.jp/rust/example/print.html - [similar]
- while let - Rust By Example 日本語版 10908
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...の延期 20.6. ファイルシステムとのやり取り 20.7. 引数処理 ❱ 20.7.1. 引数のパース 20.8. 他言語関数インターフェ...e let if let と同様に、 while let も不格好な match 処理を多少マシにしてくれます。例えば、以下の i をインクリ...メントする処理を見てください。 #![allow(unused)] fn main() { // Ma...し`optional`のデストラクトに成功した場合、値に応じて処理を分岐 Some(i) => { if i > 9 { println!("Greater tha... - https://man.plustar.jp/rust/example/flow_control/while_let.html - [similar]
- エラーをラップする - Rust By Example 日本語版 10604
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...の延期 20.6. ファイルシステムとのやり取り 20.7. 引数処理 ❱ 20.7.1. 引数のパース 20.8. 他言語関数インターフェ...ng more data to the type. // パースエラーの実装まで処理を委譲します。 // 追加の情報を提供するには、型により.../ これはラッパーなので、`fmt`での元となる型の実装に処理を任せます。 DoubleError::Parse(..) => write!(f, "th...y)); print(double_first(strings)); } これはエラーの処理のボイラープレートを増やしてしまい、全てのアプリケー... - https://man.plustar.jp/rust/example/error/multiple_error_types/wrap_error.html - [similar]
- if let - Rust By Example 日本語版 10310
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...の延期 20.6. ファイルシステムとのやり取り 20.7. 引数処理 ❱ 20.7.1. 引数のパース 20.8. 他言語関数インターフェ...} この場合は if let を用いたほうが美しく、失敗時の処理も柔軟に行うことができます。 fn main() { // All have...: // デストラクトした結果が`Some()`にならない場合の処理を明示したい場合、 // `else`を使用する。 if let Some...altered failing condition. // デストラクト失敗時の処理を更に分岐させることもできる let i_like_letters = fa... - https://man.plustar.jp/rust/example/flow_control/if_let.html - [similar]
- 引数処理 - Rust By Example 日本語版 10006
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...の延期 20.6. ファイルシステムとのやり取り 20.7. 引数処理 ❱ 20.7.1. 引数のパース 20.8. 他言語関数インターフェ...t) Rust Coal Navy Ayu Rust By Example 日本語版 引数処理 Standard Library コマンドライン引数は std::env::ar...ument crates, clap . 関連キーワード: 関数 , args , 処理 , Result , 引数 , Rust , By , Example , エラー , O... - https://man.plustar.jp/rust/example/std_misc/arg.html - [similar]
- Option と unwrap - Rust By Example 日本語版 9115
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...の延期 20.6. ファイルシステムとのやり取り 20.7. 引数処理 ❱ 20.7.1. 引数のパース 20.8. 他言語関数インターフェ...用いて明示的に扱うこともできますし、 unwrap で暗黙に処理することもできます。後者は Some の中の値を返すか pan...処できます。 // あらゆる飲み物は`match`を用いて手動で処理されます。 fn give_adult(drink: Option<&str>) { // S...`します。 // 全ての飲み物は`unwrap`を使って暗黙的に処理されます。 fn drink(drink: Option<&str>) { // `unwra... - https://man.plustar.jp/rust/example/error/option_unwrap.html - [similar]
- loopが返す値 - Rust By Example 日本語版 8507
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...の延期 20.6. ファイルシステムとのやり取り 20.7. 引数処理 ❱ 20.7.1. 引数のパース 20.8. 他言語関数インターフェ...oopが返す値 loop の用途のひとつに「成功するまである処理を再試行する」ことがあります。もしその処理が値を返す... - https://man.plustar.jp/rust/example/flow_control/loop/return.html - [similar]
- 早期リターン - Rust By Example 日本語版 8213
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...の延期 20.6. ファイルシステムとのやり取り 20.7. 引数処理 ❱ 20.7.1. 引数のパース 20.8. 他言語関数インターフェ...前の例では、コンビネータの活用によりエラーを明示的に処理しました。場合分けに対する別の対処法として、 match 文...ニックは一般に避けたいですが、全てのエラーを明示的に処理するのも厄介でしょう。 次の節では、 panic を発生させ... - https://man.plustar.jp/rust/example/error/result/early_returns.html - [similar]
- エラーハンドリング - Rust By Example 日本語版 7909
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...の延期 20.6. ファイルシステムとのやり取り 20.7. 引数処理 ❱ 20.7.1. 引数のパース 20.8. 他言語関数インターフェ...す。 Rustには、これからこの章で見ていく通り、エラーを処理するための様々な方法が存在します。それらは全て僅かに...が上手くいかない可能性があったり、呼び出し元が問題を処理しなければならない時は、 Result を使いましょう。 unw... - https://man.plustar.jp/rust/example/error.html - [similar]
- テストケース: リスト - Rust By Example 日本語版 7909
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...の延期 20.6. ファイルシステムとのやり取り 20.7. 引数処理 ❱ 20.7.1. 引数のパース 20.8. 他言語関数インターフェ...te! が別々の fmt::Result を生成するためです。適切に処理するためには すべての resultに対して処理を書かなくて... - https://man.plustar.jp/rust/example/hello/print/print_display/testcase_list.html - [similar]