検索

phrase: max: clip:
target: order:
Results of 1 - 6 of about 6 for multiply (0.013 sec.)
?の導入 - Rust By Example 日本語版 11771
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... るか見てみましょう。 use std::num::ParseIntError; fn multiply(first_number_str: &str, second_number_str: &str) - ... => println!("Error: {}", e), } } fn main() { print(multiply("10", "2")); print(multiply("t", "2")); } try! マク ... に出会うこともあります。 try! を使って前の例と同じ multiply 関数を実装すると、以下のようになるでしょう。 // To ... に変更してください。 use std::num::ParseIntError; fn multiply(first_number_str: &str, second_number_str: &str) - ...
https://man.plustar.jp/rust/example/error/result/enter_question_mark.html - [similar]
Resultのmap - Rust By Example 日本語版 11607
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ust By Example 日本語版 Result の map 前の例で見た multiply でのパニックは、コードを強固にするためには書きませ ... 、パターンマッチングを`unwrap()`なしで行います。 fn multiply(first_number_str: &str, second_number_str: &str) - ... は以前と変わらず、妥当な解を与えます。 let twenty = multiply("10", "2"); print(twenty); // The following now pr ... は今度は有益なエラーメッセージを与えます。 let tt = multiply("t", "2"); print(tt); } 幸運にも、 Option の map 、 ...
https://man.plustar.jp/rust/example/error/result/result_map.html - [similar]
早期リターン - Rust By Example 日本語版 8097
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... を考えてみましょう。 use std::num::ParseIntError; fn multiply(first_number_str: &str, second_number_str: &str) - ... => println!("Error: {}", e), } } fn main() { print(multiply("10", "2")); print(multiply("t", "2")); } ここまで ...
https://man.plustar.jp/rust/example/error/result/early_returns.html - [similar]
Resultに対するエイリアス - Rust By Example 日本語版 8097
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... したエイリアス(この場所特有の`Result`型)を使用 fn multiply(first_number_str: &str, second_number_str: &str) - ... => println!("Error: {}", e), } } fn main() { print(multiply("10", "2")); print(multiply("t", "2")); } 参照 io: ...
https://man.plustar.jp/rust/example/error/result/result_alias.html - [similar]
Result - Rust By Example 日本語版 7933
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... se() した場合の成功例と失敗例を見てみましょう。 fn multiply(first_number_str: &str, second_number_str: &str) - ... _number * second_number } fn main() { let twenty = multiply("10", "2"); println!("double is {}", twenty); let ... tt = multiply("t", "2"); println!("double is {}", tt); } 失敗例で ...
https://man.plustar.jp/rust/example/error/result.html - [similar]
圧縮 - Rust By Example 日本語版 7293
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... り、 // 2つの参照をそのライフタイムに押し込める。 fn multiply<'a>(first: &'a i32, second: &'a i32) -> i32 { firs ... // 短いライフタイム println!("The product is {}", multiply(&first, &second)); println!("{} is the first", cho ...
https://man.plustar.jp/rust/example/scope/lifetime/lifetime_coercion.html - [similar]
PREV 1 NEXT