{"image_url":null,"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fubnt-intrepid.hatenablog.com%2Fentry%2F2016%2F09%2F21%2F063652\" title=\"Rust \u3067\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9 - \u306b\u3063\u304d\" 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":"ubnt_intrepid","type":"rich","published":"2016-09-21 06:36:52","blog_url":"https://ubnt-intrepid.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/ubnt_intrepid/","version":"1.0","title":"Rust \u3067\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9","height":"190","description":"Rust \u3067\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u3092\u3057\u305f\u3044\u5834\u5408\uff0c\u30aa\u30fc\u30d0\u30ed\u30fc\u30c9\u5bfe\u8c61\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3064 Trait \u3092\u7528\u610f\u3057\uff0c\u5404\u578b\u3054\u3068\u306b\u5b9f\u88c5\u3092\u8a18\u8ff0\u3059\u308b\uff0e mod hoge { pub struct Hoge; // \u5f15\u6570\u306e\u578b\u3092\u5f15\u6570 pub trait Foo<T> { fn foo(&self, foo: T); } // \u5f15\u6570\u306e\u578b\u3054\u3068\u306b\u5b9f\u88c5\u3092\u8a18\u8ff0 impl Foo<i32> for Hoge { fn foo(&self, foo: i32) { println!(\"i32\"); } } impl Foo<f64> for Hoge { fn foo(&self, foo: f64) { println!(\"f\u2026","width":"100%","provider_name":"Hatena Blog","url":"https://ubnt-intrepid.hatenablog.com/entry/2016/09/21/063652","blog_title":"\u306b\u3063\u304d","categories":["Programming","Rust"]}