<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nnsnico</author_name>
  <author_url>https://blog.hatena.ne.jp/nnsnico/</author_url>
  <blog_title>(´ワ｀)</blog_title>
  <blog_url>https://nnsnico.hatenablog.jp/</blog_url>
  <categories>
    <anon>Rust</anon>
  </categories>
  <description>最近まじめにRustを勉強し始めたので主要なスマートポインタについてRustドキュメントの内容を自分用にまとめる。 Box&lt;T&gt; T の値をヒープに格納する。型の中に同じ型が入るような無限の再帰ループを起こすような型のように、 T のサイズが未確定のときに使える。RustドキュメントにはConsが例として挙げられている。 enum List { Cons(i32, List), Nil, } fn main() { use List::{Cons, Nil}; let ls = Cons(1, Cons(2, Cons(3, Nil))); // Consの中にConsが入っており再帰的構造に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnnsnico.hatenablog.jp%2Fentry%2F2020%2F05%2F31%2F205840&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>2020-05-31 20:58:40</published>
  <title>Rustのスマートポインタまとめ</title>
  <type>rich</type>
  <url>https://nnsnico.hatenablog.jp/entry/2020/05/31/205840</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
