{"author_name":"syu-m-5151","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsyu-m-5151.hatenablog.com%2Fentry%2F2026%2F05%2F09%2F210159\" title=\"\u81ea\u5206\u306e\u30af\u30ec\u30fc\u30c8\u5916\u306e\u578b\u306b\u30e1\u30bd\u30c3\u30c9\u3092\u751f\u3084\u3059 \u2014 extension trait \u3068 sealed pattern - \u3058\u3083\u3042\u3001\u304a\u3046\u3061\u3067\u5b66\u3079\u308b \" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","url":"https://syu-m-5151.hatenablog.com/entry/2026/05/09/210159","height":"190","title":"\u81ea\u5206\u306e\u30af\u30ec\u30fc\u30c8\u5916\u306e\u578b\u306b\u30e1\u30bd\u30c3\u30c9\u3092\u751f\u3084\u3059 \u2014 extension trait \u3068 sealed pattern","author_url":"https://blog.hatena.ne.jp/syu-m-5151/","categories":["Rust"],"blog_url":"https://syu-m-5151.hatenablog.com/","type":"rich","version":"1.0","blog_title":"\u3058\u3083\u3042\u3001\u304a\u3046\u3061\u3067\u5b66\u3079\u308b ","image_url":null,"description":"\u306f\u3058\u3081\u306b \u300cString \u306b\u72ec\u81ea\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3057\u305f\u3044\u300d\u300c\u5916\u90e8\u30af\u30ec\u30fc\u30c8\u306e\u578b\u306b1\u30e1\u30bd\u30c3\u30c9\u3060\u3051\u751f\u3084\u3057\u305f\u3044\u300d\u5834\u9762\u304c\u3042\u308a\u307e\u3059\u3002Rust \u306e orphan rule \u306e\u305b\u3044\u3067\u3001\u5916\u90e8\u30af\u30ec\u30fc\u30c8\u306e\u578b\u306b\u5916\u90e8\u30af\u30ec\u30fc\u30c8\u306e\u30c8\u30ec\u30a4\u30c8\u3092\u76f4\u63a5\u5b9f\u88c5\u3059\u308b\u306e\u306f\u7121\u7406\u3067\u3059\u3002\u4ee3\u308f\u308a\u306b \u81ea\u5206\u306e\u30c8\u30ec\u30a4\u30c8\u3092\u5b9a\u7fa9\u3057\u3066\u3001\u305d\u306e\u578b\u306b\u5bfe\u3059\u308b impl \u3092\u66f8\u304f \u306e\u304c extension trait \u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002 doc.rust-lang.org \u3055\u3089\u306b sealed trait pattern \u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u3001\u300c\u3053\u306e\u30c8\u30ec\u30a4\u30c8\u306f\u5916\u90e8\u304b\u3089\u5b9f\u88c5\u3067\u304d\u306a\u3044\u300d\u3053\u3068\u3092\u4fdd\u8a3c\u3067\u304d\u307e\u3059\u3002\u516c\u958b API \u306e\u9032\u5316\u3092\u7834\u58ca\u7684\u5909\u66f4\u306b\u3057\u306a\u3044\u305f\u3081\u306e\u5c0f\u6280\u3067\u3059\u3002 \u307e\u305a\u52d5\u304f\u30b3\u30fc\u30c9 Stri\u2026","published":"2026-05-09 21:01:59"}