検索

phrase: max: clip:
target: order:
Results of 1 - 9 of about 9 for errors (0.021 sec.)
Resultをイテレートする - Rust By Example 日本語版 13804
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... strings = vec!["tofu", "93", "18"]; let (numbers, errors): (Vec<_>, Vec<_>) = strings .into_iter() .map(|s| ... ok); println!("Numbers: {:?}", numbers); println!("Errors: {:?}", errors); } 結果を見てみると、まだ全て Resu ... strings = vec!["tofu", "93", "18"]; let (numbers, errors): (Vec<_>, Vec<_>) = strings .into_iter() .map(|s| ... ers.into_iter().map(Result::unwrap).collect(); let errors: Vec<_> = errors.into_iter().map(Result::unwrap_er ...
https://man.plustar.jp/rust/example/error/iter_result.html - [similar]
テストケース: リスト - Rust By Example 日本語版 9329
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... に対して使用します。 // Try `write!` to see if it errors. If it errors, return // the error. Otherwise cont ... t, add a comma. // Use the ? operator to return on errors. if count != 0 { write!(f, ", ")?; } write!(f, "{} ...
https://man.plustar.jp/rust/example/hello/print/print_display/testcase_list.html - [similar]
エラー型を定義する - Rust By Example 日本語版 9185
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ing cases. // Now we will be able to write our own errors, defer to an underlying error // implementation, o ... Note that we don't store any extra info about the errors. This means we can't state // which string failed ... tem to double") } } // This is important for other errors to wrap this one. impl error::Error for DoubleErro ...
https://man.plustar.jp/rust/example/error/multiple_error_types/define_error_type... - [similar]
RAII - Rust By Example 日本語版 8574
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... == ==26873== For counts of detected and suppressed errors, rerun with: -v ==26873== ERROR SUMMARY: 0 errors ...
https://man.plustar.jp/rust/example/scope/raii.html - [similar]
panic! - Rust By Example 日本語版 8574
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 1== ==4401== For counts of detected and suppressed errors, rerun with: -v ==4401== ERROR SUMMARY: 0 errors f ...
https://man.plustar.jp/rust/example/std/panic.html - [similar]
read lines - Rust By Example 日本語版 7980
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... output is wrapped in a Result to allow matching on errors // Returns an Iterator to the Reader of the lines ...
https://man.plustar.jp/rust/example/std_misc/file/read_lines.html - [similar]
?の導入 - Rust By Example 日本語版 7837
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... しょう。 // To compile and run this example without errors, while using Cargo, change the value // of the `ed ...
https://man.plustar.jp/rust/example/error/result/enter_question_mark.html - [similar]
Result - Rust By Example 日本語版 7837
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... y の型は E です。) mod checked { // Mathematical "errors" we want to catch // 補足対象としたい、数学的な「エ ...
https://man.plustar.jp/rust/example/std/result.html - [similar]
Rust By Example 日本語版 7675
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... に対して使用します。 // Try `write!` to see if it errors. If it errors, return // the error. Otherwise cont ... t, add a comma. // Use the ? operator to return on errors. if count != 0 { write!(f, ", ")?; } write!(f, "{} ...
https://man.plustar.jp/rust/example/print.html - [similar]
PREV 1 NEXT