検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 193 for then (0.021 sec.)
Combinators: and_then - Rust By Example 日本語版 18437
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 18.2.2. Combinators: map 18.2.3. Combinators: and_then 18.3. Result ❱ 18.3.1. Resultのmap 18.3.2. Resultに ... Navy Ayu Rust By Example 日本語版 Combinators: and_then 先ほどは map() を、チェイン構文を用いて match 文を ... せることは混乱を招く場合があります。そんな時こそ and_then() の出番です。他の言語ではflatmapと呼ばれることもあ ... ります。 and_then() は引数として与えられた関数にラップされた値を渡し ...
https://man.plustar.jp/rust/example/error/option_unwrap/and_then.html - [similar]
? - Rust By Example 日本語版 8105
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 18.2.2. Combinators: map 18.2.3. Combinators: and_then 18.3. Result ❱ 18.3.1. Resultのmap 18.3.2. Resultに ... f64, y: f64) -> MathResult { // if `div` "fails", then `DivisionByZero` will be `return`ed let ratio = di ... v(x, y)?; // if `ln` "fails", then `NonPositiveLogarithm` will be `return`ed let ln = ...
https://man.plustar.jp/rust/example/std/result/question_mark.html - [similar]
?の他の活用法 - Rust By Example 日本語版 7822
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 18.2.2. Combinators: map 18.2.3. Combinators: and_then 18.3. Result ❱ 18.3.1. Resultのmap 18.3.2. Resultに ... ラーからboxされたエラーへと map していました。 .and_then(|s| s.parse::<i32>() .map_err(|e| e.into()) 簡単で ... 省略してしまえると便利だったでしょう。でも残念、 and_then が十分にフレキシブルでないため、それはできません。 ...
https://man.plustar.jp/rust/example/error/multiple_error_types/reenter_question_... - [similar]
Combinators: map - Rust By Example 日本語版 7822
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 18.2.2. Combinators: map 18.2.3. Combinators: and_then 18.3. Result ❱ 18.3.1. Resultのmap 18.3.2. Resultに ... Cooked(Food); // Peeling food. If there isn't any, then return `None`. // Otherwise, return the peeled foo ... => None, } } // Chopping food. If there isn't any, then return `None`. // Otherwise, return the chopped fo ...
https://man.plustar.jp/rust/example/error/option_unwrap/map.html - [similar]
Resultのmap - Rust By Example 日本語版 7822
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 18.2.2. Combinators: map 18.2.3. Combinators: and_then 18.3. Result ❱ 18.3.1. Resultのmap 18.3.2. Resultに ... "2"); print(tt); } 幸運にも、 Option の map 、 and_then 、その他多くのコンビネータも Result のために実装さ ... rseIntError> { first_number_str.parse::<i32>().and_then(|first_number| { second_number_str.parse::<i32>(). ...
https://man.plustar.jp/rust/example/error/result/result_map.html - [similar]
文字列 - Rust By Example 日本語版 7257
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 18.2.2. Combinators: map 18.2.3. Combinators: and_then 18.3. Result ❱ 18.3.1. Resultのmap 18.3.2. Resultに ... a raw string, add a pair of #s let quotes = r#"And then I said: "There is no escape!""#; println!("{}", qu ... more #s in the delimiter. // There is no limit for the number of #s you can use. let longer_delimiter = r# ... 82\xb1\x82\xbb"; // "ようこそ" in SHIFT-JIS // But then they can't always be converted to `str` match str: ...
https://man.plustar.jp/rust/example/std/str.html - [similar]
Using a Library - Rust By Example 日本語版 6703
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 18.2.2. Combinators: map 18.2.3. Combinators: and_then 18.3. Result ❱ 18.3.1. Resultのmap 18.3.2. Resultに ... use rustc 's --extern flag. All of its items will then be imported under a module named the same as the l ...
https://man.plustar.jp/rust/example/crates/using_lib.html - [similar]
エラーをBoxする - Rust By Example 日本語版 6703
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 18.2.2. Combinators: map 18.2.3. Combinators: and_then 18.3. Result ❱ 18.3.1. Resultのmap 18.3.2. Resultに ... tyVec.into()) // Converts to Box // Boxに変換 .and_then(|s| { s.parse::<i32>() .map_err(|e| e.into()) // C ...
https://man.plustar.jp/rust/example/error/multiple_error_types/boxing_errors.htm... - [similar]
Resultに対するエイリアス - Rust By Example 日本語版 6703
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 18.2.2. Combinators: map 18.2.3. Combinators: and_then 18.3. Result ❱ 18.3.1. Resultのmap 18.3.2. Resultに ... dResult<i32> { first_number_str.parse::<i32>().and_then(|first_number| { second_number_str.parse::<i32>(). ...
https://man.plustar.jp/rust/example/error/result/result_alias.html - [similar]
バインディング - Rust By Example 日本語版 6703
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 18.2.2. Combinators: map 18.2.3. Combinators: and_then 18.3. Result ❱ 18.3.1. Resultのmap 18.3.2. Resultに ... hday yet"), // Could `match` 1 ..= 12 directly but then what age // would the child be? Instead, bind to ` ...
https://man.plustar.jp/rust/example/flow_control/match/binding.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT