{"author_url":"https://blog.hatena.ne.jp/totem_3/","url":"https://totem3.hatenablog.jp/entry/2016/10/25/212303","blog_title":"\u30a8\u30f3\u30b8\u30cb\u30a2\u3067\u3059\u3088\uff01","title":" Rust \u30e1\u30e2 String \u306b\u5bfe\u3057\u3066 match","description":"Rust \u306e match \u306f\u975e\u5e38\u306b\u5f37\u529b\u3002 \u69d8\u3005\u306a\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u3084\u3001 destructuring \u304c\u4f7f\u3048\u3066\u975e\u5e38\u306b\u4fbf\u5229 \u8a73\u3057\u304f\u306f https://doc.rust-lang.org/book/match.html Patterns \u305f\u307e\u306b String \u306a\u5909\u6570\u306b\u5bfe\u3057\u3066 match \u3092\u4f7f\u3044\u305f\u3044\u3053\u3068\u304c\u3042\u308b\u3002 \u304c\u3001\u3053\u3093\u306a\u3075\u3046\u306b\u3084\u308d\u3046\u3068\u3057\u3066\u3082\u3082\u3061\u308d\u3093\u3067\u304d\u306a\u3044\u3002 s \u306f String \u306a\u306e\u306b\u5bfe\u3057\u3066\u3001 \u30d1\u30bf\u30fc\u30f3\u3067\u3042\u308b \"hoge\" \u306f &'static str \u306a\u306e\u3067\u578b\u304c\u4e00\u81f4\u3057\u306a\u3044\u3002 String \u30ea\u30c6\u30e9\u30eb\u306f\u306a\u3044\u3057\u3001\u30d1\u30bf\u30fc\u30f3\u306e\u90e8\u5206\u306b\u306f enum variant \u3084\u69cb\u9020\u4f53\u3001\u30ea\u30c6\u30e9\u30eb\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u304c\uff08slic\u2026","type":"rich","width":"100%","provider_url":"https://hatena.blog","image_url":null,"categories":["rust"],"version":"1.0","provider_name":"Hatena Blog","published":"2016-10-25 21:23:03","blog_url":"https://totem3.hatenablog.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftotem3.hatenablog.jp%2Fentry%2F2016%2F10%2F25%2F212303\" title=\" Rust \u30e1\u30e2 String \u306b\u5bfe\u3057\u3066 match - \u30a8\u30f3\u30b8\u30cb\u30a2\u3067\u3059\u3088\uff01\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"totem_3","height":"190"}