検索

phrase: max: clip:
target: order:
Results of 11 - 19 of about 19 for None (0.038 sec.)
ハッシュマップ - Rust By Example 日本語版 7752
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... iel's number."), } // `HashMap::insert()` returns `None` // if the inserted value is new, `Some(value)` ot ... shMap::insert()`は // insertされた値が新しい場合は`None`を // そうでなければ`Some(value)`を返す。 contacts ...
https://man.plustar.jp/rust/example/std/hash.html - [similar]
Rust By Example 日本語版 7666
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... first, add a comma. // Use the ? operator to return on errors. if count != 0 { write!(f, ", ")?; } write! ... t interesting... {}", n), // Match anything else (`None` variant). _ => (), } } 参照 関数 , enums , Option ... `型 let number = Some(7); let letter: Option<i32> = None; let emoticon: Option<i32> = None; // The `if let` ... 9 { println!("Greater than 9, quit!"); optional = None; } else { println!("`i` is `{:?}`. Try again.", i) ...
https://man.plustar.jp/rust/example/print.html - [similar]
バインディング - Rust By Example 日本語版 7427
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... t interesting... {}", n), // Match anything else (`None` variant). _ => (), } } 参照 関数 , enums , Option ...
https://man.plustar.jp/rust/example/flow_control/match/binding.html - [similar]
Path - Rust By Example 日本語版 7427
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 字列のスライスに変換する。 match new_path.to_str() { None => panic!("new path is not a valid UTF-8 sequence" ...
https://man.plustar.jp/rust/example/std_misc/path.html - [similar]
Resultをイテレートする - Rust By Example 日本語版 7342
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 素のみを無視する filter_map は関数を呼び出し、結果が None になるものだけ取り除きます。 fn main() { let strin ...
https://man.plustar.jp/rust/example/error/iter_result.html - [similar]
エラー型を定義する - Rust By Example 日本語版 7342
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... tely separate from how it is displayed. // There's no need to be concerned about cluttering complex logic ... ked. // 基本となるエラー、原因は記録されていない。 None } } fn double_first(vec: Vec<&str>) -> Result<i32> ...
https://man.plustar.jp/rust/example/error/multiple_error_types/define_error_type... - [similar]
エラーをラップする - Rust By Example 日本語版 7342
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 'static)> { match *self { DoubleError::EmptyVec => None, // The cause is the underlying implementation err ...
https://man.plustar.jp/rust/example/error/multiple_error_types/wrap_error.html - [similar]
Result - Rust By Example 日本語版 7342
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... として、列挙型 Option が使用でき、失敗時の返り値には None を用いることを見てきました。しかし、時には なぜ そ ...
https://man.plustar.jp/rust/example/std/result.html - [similar]
Unit testing - Rust By Example 日本語版 7342
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 0 ignored; 0 measured; 0 filtered out Tests and ? None of the previous unit test examples had a return ty ...
https://man.plustar.jp/rust/example/testing/unit_testing.html - [similar]
PREV 1 2 NEXT