{"height":"190","blog_title":"\u7c21\u6f54\u306aQ","version":"1.0","blog_url":"https://qnighy.hatenablog.com/","url":"https://qnighy.hatenablog.com/entry/2017/06/30/220000","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fqnighy.hatenablog.com%2Fentry%2F2017%2F06%2F30%2F220000\" title=\"Rust unsize\u671f\u5f85\u578b\u3068\u30ad\u30e3\u30b9\u30c8\u671f\u5f85\u578b - \u7c21\u6f54\u306aQ\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2017-06-30 22:00:00","author_url":"https://blog.hatena.ne.jp/qnighy/","categories":["Rust"],"title":"Rust unsize\u671f\u5f85\u578b\u3068\u30ad\u30e3\u30b9\u30c8\u671f\u5f85\u578b","author_name":"qnighy","provider_name":"Hatena Blog","image_url":null,"type":"rich","provider_url":"https://hatena.blog","description":"Rust\u306e\u671f\u5f85\u578b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u306b\u306a\u3063\u3066\u3044\u308b\u3002 #[derive(Copy, Clone, Debug)] pub enum Expectation<'tcx> { NoExpectation, ExpectHasType(Ty<'tcx>), ExpectCastableToType(Ty<'tcx>), ExpectRvalueLikeUnsized(Ty<'tcx>), } \u3053\u306e\u3088\u3046\u306b4\u3064\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u6301\u3064 Expectation \u3060\u304c\u3001\u6700\u3082\u5927\u304d\u306a\u50cd\u304d\u3092\u3057\u3066\u3044\u308b\u306e\u306f NoExpectation \u3068 ExpectHasType \u3067\u3042\u308a\u3001\u307b\u307c Option<Ty> \u3068\u601d\u3063\u3066\u554f\u984c\u306a\u2026","width":"100%"}