<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>TAKOYAKING</author_name>
  <author_url>https://blog.hatena.ne.jp/TAKOYAKING/</author_url>
  <blog_title>TAKOYAKING’s blog</blog_title>
  <blog_url>https://takoyaking.hatenablog.com/</blog_url>
  <categories>
    <anon>Rust</anon>
  </categories>
  <description>structにライフタイム付けたらimpl側でもライフタイムが必要です。 その時のライフタイムの記述は匿名ライフタイムとして記述できるようです。(Rust 2018) 現象 struct SysConfig&lt;'a&gt; { dir: String, extension: String, blacklist: &amp;'a Vec&lt;String&gt;, } impl SysConfig { fn parse(&amp;self) { } } 上記のようなコードを書くとimpl側でもライフタイムの指定が必要なので、以下のようなエラーがでます。 struct SysConfig&lt;'a&gt; implicit elided l…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakoyaking.hatenablog.com%2Fentry%2Fanonymous_lifetime&quot; title=&quot;Rust: 匿名ライフタイム - TAKOYAKING’s blog&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>2020-04-21 09:00:00</published>
  <title>Rust: 匿名ライフタイム</title>
  <type>rich</type>
  <url>https://takoyaking.hatenablog.com/entry/anonymous_lifetime</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
