<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ubnt_intrepid</author_name>
  <author_url>https://blog.hatena.ne.jp/ubnt_intrepid/</author_url>
  <blog_title>にっき</blog_title>
  <blog_url>https://ubnt-intrepid.hatenablog.com/</blog_url>
  <categories>
    <anon>Programming</anon>
    <anon>Rust</anon>
  </categories>
  <description>Rust でメソッドのオーバーロードをしたい場合，オーバロード対象のメソッドを持つ Trait を用意し，各型ごとに実装を記述する． mod hoge { pub struct Hoge; // 引数の型を引数 pub trait Foo&lt;T&gt; { fn foo(&amp;self, foo: T); } // 引数の型ごとに実装を記述 impl Foo&lt;i32&gt; for Hoge { fn foo(&amp;self, foo: i32) { println!(&quot;i32&quot;); } } impl Foo&lt;f64&gt; for Hoge { fn foo(&amp;self, foo: f64) { println!(&quot;f…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fubnt-intrepid.hatenablog.com%2Fentry%2F2016%2F09%2F21%2F063652&quot; title=&quot;Rust でメソッドのオーバーロード - にっき&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-09-21 06:36:52</published>
  <title>Rust でメソッドのオーバーロード</title>
  <type>rich</type>
  <url>https://ubnt-intrepid.hatenablog.com/entry/2016/09/21/063652</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
