{"description":"Rust \u306b\u306f\u6574\u6570\u306e primitive \u578b\u304c\u591a\u6570\u3042\u308b\u304c\u3001\u3069\u306e\u578b\u3067\u3082\u3088\u3057\u306a\u306b\u8a08\u7b97\u3057\u3066\u304f\u308c\u308b\u95a2\u6570\u3092\u66f8\u304d\u305f\u304f\u306a\u308b\u3002\u56db\u5247\u6f14\u7b97\u5b50\u3092\u8868\u3059 trait \u306f\u3042\u308b\u306e\u3060\u304c\u3001\u7d30\u304b\u304f\u5206\u304b\u308c\u3066\u3044\u308b\u306e\u3067\u6307\u5b9a\u3059\u308b\u306e\u304c\u5927\u5909\u3067\u3042\u308b\u3002 use std::fmt::Display; use std::ops::{AddAssign, Mul, MulAssign}; fn execute<T>(mut x: T, y: T) where T: Display + Copy + MulAssign + Mul<Output = T> + AddAssign, { println!(\"x={}, y={}\", x, y); x *=\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiratara.hatenadiary.jp%2Fentry%2F2023%2F03%2F25%2F145242\" title=\"trait\u306ealias\u3092\u4f5c\u308b \uff5e associated type\u3092\u6dfb\u3048\u3066 - Pixel Pedals of Tomakomai\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","version":"1.0","author_url":"https://blog.hatena.ne.jp/hiratara/","blog_url":"https://hiratara.hatenadiary.jp/","provider_name":"Hatena Blog","author_name":"hiratara","categories":["\u6280\u8853"],"type":"rich","provider_url":"https://hatena.blog","url":"https://hiratara.hatenadiary.jp/entry/2023/03/25/145242","image_url":null,"width":"100%","published":"2023-03-25 14:52:42","blog_title":"Pixel Pedals of Tomakomai","title":"trait\u306ealias\u3092\u4f5c\u308b \uff5e associated type\u3092\u6dfb\u3048\u3066"}