{"author_name":"yohhoy","title":"for\u30eb\u30fc\u30d7\u3068\u30a4\u30c6\u30ec\u30fc\u30bf","author_url":"https://blog.hatena.ne.jp/yohhoy/","blog_url":"https://yohhoy.hatenadiary.jp/","description":"Rust\u8a00\u8a9e\u306efor\u69cb\u6587\u3068 IntoIterator\u30c8\u30ec\u30a4\u30c8 \u306b\u95a2\u3059\u308b\u30e1\u30e2\u3002\uff3b\u672c\u8a18\u4e8b\u306fRust 1.11/Stable\u6e96\u62e0\uff3d for x in expression { // \u30eb\u30fc\u30d7\u672c\u4f53 } Rust\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u3088\u308c\u3070\u3001for\u30eb\u30fc\u30d7\u3067\u306f\u4e0b\u8a18\u30b3\u30fc\u30c9\u3068\u7b49\u4fa1\u306a\u51e6\u7406\u304c\u884c\u308f\u308c\u308b\u3002\u5f0f expression \u306b\u5bfe\u3057\u3066 IntoIterator::into_iter \u30e1\u30bd\u30c3\u30c9\u304c\u9069\u7528\u3055\u308c\u308b\u3002 match IntoIterator::into_iter(expression) { mut iter => loop { match iter.next() { Some(x) => { // \u30eb\u30fc\u30d7\u672c\u4f53 }, \u2026","image_url":null,"url":"https://yohhoy.hatenadiary.jp/entry/20160907/p1","blog_title":"yohhoy\u306e\u65e5\u8a18","height":"190","published":"2016-09-07 00:00:00","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20160907%2Fp1\" title=\"for\u30eb\u30fc\u30d7\u3068\u30a4\u30c6\u30ec\u30fc\u30bf - yohhoy\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","categories":["Rust"],"width":"100%","version":"1.0"}