検索

phrase: max: clip:
target: order:
Results of 1 - 1 of about 1 for Peeled (0.004 sec.)
Combinators: map - Rust By Example 日本語版 9414
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... { Apple, Carrot, Potato } #[derive(Debug)] struct Peeled(Food); #[derive(Debug)] struct Chopped(Food); #[de ... any, then return `None`. // Otherwise, return the peeled food. // 食べ物の皮をむく。存在しない場合は単純に` ... 食べ物を返す。 fn peel(food: Option<Food>) -> Option<Peeled> { match food { Some(food) => Some(Peeled(food)), ... に、皮を向いた食べ物の有無を知る必要がある。 fn chop(peeled: Option<Peeled>) -> Option<Chopped> { match peeled ...
https://man.plustar.jp/rust/example/error/option_unwrap/map.html - [similar]
PREV 1 NEXT