検索

phrase: max: clip:
target: order:
Results of 1 - 1 of about 1 for cooked (0.002 sec.)
Combinators: map - Rust By Example 日本語版 9414
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ug)] struct Chopped(Food); #[derive(Debug)] struct Cooked(Food); // Peeling food. If there isn't any, then r ... ている。 fn cook(chopped: Option<Chopped>) -> Option<Cooked> { chopped.map(|Chopped(food)| Cooked(food)) } // ... もできる。 fn process(food: Option<Food>) -> Option<Cooked> { food.map(|f| Peeled(f)) .map(|Peeled(f)| Choppe ... d(f)) .map(|Chopped(f)| Cooked(f)) } // Check whether there's food or not before ...
https://man.plustar.jp/rust/example/error/option_unwrap/map.html - [similar]
PREV 1 NEXT