{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fqnighy.hatenablog.com%2Fentry%2F2017%2F03%2F22%2F070000\" title=\"Rust\u306eself\u5f15\u6570\u307e\u3068\u3081 - \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>","categories":["Rust"],"height":"190","published":"2017-03-22 07:00:00","blog_title":"\u7c21\u6f54\u306aQ","blog_url":"https://qnighy.hatenablog.com/","image_url":null,"description":"\u6982\u8981: Rust\u306e\u968f\u6240\u3067self\u5f15\u6570\u306f\u7279\u5225\u6271\u3044\u3055\u308c\u3066\u3044\u308b\u3002\u305d\u308c\u3089\u306e\u6319\u52d5\u306b\u3064\u3044\u3066\u8abf\u3079\u305f\u3002 self\u5f15\u6570\u3068\u30e1\u30bd\u30c3\u30c9 Rust\u3067\u306fnon-static\u30e1\u30bd\u30c3\u30c9\u306f self \u3068\u3044\u3046\u7279\u6b8a\u306a\u540d\u524d\u306e\u5f15\u6570\u3092\u6301\u3064\u95a2\u6570\u3068\u3057\u3066\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u3002\u4f8b\u3048\u3070\u3001 struct A; // parse_self_arg impl A { fn f1(self: A) {} fn f2(self: &mut A) {} fn f3(self: &A) {} fn f4(self: Box<A>) {} // \u751f\u5b58\u671f\u9593\u3092\u660e\u793a\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u901a\u308a // fn f2<'a>(self: &'a mut A) {} // fn f3<'a>(\u2026","author_url":"https://blog.hatena.ne.jp/qnighy/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","author_name":"qnighy","width":"100%","version":"1.0","title":"Rust\u306eself\u5f15\u6570\u307e\u3068\u3081","type":"rich","url":"https://qnighy.hatenablog.com/entry/2017/03/22/070000"}