<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tniina</author_name>
  <author_url>https://blog.hatena.ne.jp/tniina/</author_url>
  <blog_title>in neuro</blog_title>
  <blog_url>https://in-neuro.hatenablog.com/</blog_url>
  <categories>
    <anon>Rust</anon>
  </categories>
  <description>RustのTraitは内部に型を持つことがある。関連型（associated type）だ trait Hoge { type Value; } impl Hoge for Piyo { type Value = Fuga; } このValue型についてトレイト境界を付けたい。 つまり、ある型Tがあり、型&lt;T as Hoge&gt;::ValueがOtherTraitを満たす場合のみ使える関数を使いたい。 以下のように書けたらよいのだが。 fn foo&lt;T: Hoge&lt;Value: OtherTrait&gt;&gt;() -&gt; () { // ... } 残念ながらこれは通らない。 error: expect…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fin-neuro.hatenablog.com%2Fentry%2F2019%2F01%2F20%2F210653&quot; title=&quot;Rustでtraitのassociated typeに対してtrait boundaryを課す - in neuro&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>2019-01-20 21:06:53</published>
  <title>Rustでtraitのassociated typeに対してtrait boundaryを課す</title>
  <type>rich</type>
  <url>https://in-neuro.hatenablog.com/entry/2019/01/20/210653</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
