{"title":"Rust \u306e\u30d1\u30bf\u30fc\u30f3\u8a18\u6cd5 ( Pattern matching )","provider_url":"https://hatena.blog","image_url":null,"blog_title":"emahiro/b.log","type":"rich","url":"https://ema-hiro.hatenablog.com/entry/2021/07/27/231804","blog_url":"https://ema-hiro.hatenablog.com/","description":"Overview Rust \u306e Pattern matching \u304c\u3068\u3066\u3082\u4fbf\u5229\u3060\u306a\u3068\u601d\u3063\u305f\u306e\u3067\u5099\u5fd8\u9332\u3067\u3059\u3002 TRPL \u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002 doc.rust-jp.rs \u3053\u308c\u3092\u8aad\u3081\u3070\u30d1\u30bf\u30fc\u30f3\u8a18\u6cd5\u306b\u95a2\u3057\u3066\u5fc5\u8981\u306a\u3053\u3068\u306f\u5927\u4f53\u7db2\u7f85\u3055\u308c\u3066\u308b\u306e\u3067\u672c\u5f53\u306b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304c\u5145\u5b9f\u3057\u3066\u308b\u3044\u3044\u74b0\u5883\u3060\u306a\u3068\u601d\u3044\u307e\u3059\u3002Rust\u3002 \u5358\u7d14\u306a\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u30f3\u30b0 let x = 10; match x { 1 => print!(\"one\\n\"), 2 => print!(\"two\\n\"), _ => print!(\"none\\n\") }; switch \u30b1\u30fc\u30b9\u306e default \u7684\u306a\u3069\u3053\u306b\u3082\u30de\u30c3\u30c1\u3057\u306a\u304b\u3063\u305f\u5834\u5408\u306b\u306f \u2026","author_name":"ema_hiro","published":"2021-07-27 23:18:04","width":"100%","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fema-hiro.hatenablog.com%2Fentry%2F2021%2F07%2F27%2F231804\" title=\"Rust \u306e\u30d1\u30bf\u30fc\u30f3\u8a18\u6cd5 ( Pattern matching ) - emahiro/b.log\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","provider_name":"Hatena Blog","categories":["Rust"],"author_url":"https://blog.hatena.ne.jp/ema_hiro/"}