<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uc_ebuc</author_name>
  <author_url>https://blog.hatena.ne.jp/uc_ebuc/</author_url>
  <blog_title>雑多なブログ</blog_title>
  <blog_url>https://cufl.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>Rust には値が存在しない可能性がある場合に使用する、Option 型が用意されている。 Option型は、値が存在する場合と、空の場合がある時に値を操作するのに便利。 Option型の定義は次の通り。 enum Option&lt;T&gt; { None, Some(T) } 使用例 let values = vec![&quot;hoge&quot;, &quot;fuga&quot;, &quot;moge&quot;, &quot;gegege&quot;]; println!(&quot;{:?}&quot;, values.get(0)); println!(&quot;{:?}&quot;, values.get(2)); println!(&quot;{:?}&quot;, values.get(100)); 出力は次の通…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcufl.hateblo.jp%2Fentry%2F2022%2F01%2F13%2F235046&quot; title=&quot;rust: Option型 - 雑多なブログ&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-01-13 23:50:46</published>
  <title>rust: Option型</title>
  <type>rich</type>
  <url>https://cufl.hateblo.jp/entry/2022/01/13/235046</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
