<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hakujira17</author_name>
  <author_url>https://blog.hatena.ne.jp/hakujira17/</author_url>
  <blog_title>Linux note</blog_title>
  <blog_url>https://hakujira.hatenablog.com/</blog_url>
  <categories>
    <anon>rust</anon>
  </categories>
  <description>static lifetimeは、オブジェクトがどのような寿命よりも長持ちするかを定義する。 必ずしも、プログラムが終了したときにだけ削除されるとは限りません。ただ、このオブジェクトが他のどのオブジェクトよりも先にスコープ外に出ることを、Rust が強制する必要がないことを意味しているのです。 例えば、&amp;'static strは'static lifetimeを持ちますが、i64やStringも同じです。そのため、次のような関数 。 fn take&lt;T : Clone + 'static&gt;(t : T); は文字列と整数を引数として持つことができます。 静的リソースは他のリソースより先に破壊さ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhakujira.hatenablog.com%2Fentry%2F2022%2F02%2F04%2F142619&quot; title=&quot;Genericで使われるstatic lifetimeとは - Linux note&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>2022-02-04 14:26:19</published>
  <title>Genericで使われるstatic lifetimeとは</title>
  <type>rich</type>
  <url>https://hakujira.hatenablog.com/entry/2022/02/04/142619</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
