<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>saneyuki_s</author_name>
  <author_url>https://blog.hatena.ne.jp/saneyuki_s/</author_url>
  <blog_title>saneyuki_s log</blog_title>
  <blog_url>https://saneyukis.hatenablog.com/</blog_url>
  <categories>
    <anon>Rust</anon>
  </categories>
  <description>この記事はRust 0.10を基準に書かれている 前提 Rustの基本として、明示的にmutを付けて値の変更を可能にした（mutableにした）データ以外は変更することができない（デフォルトimmutableの原則とでも呼ぶべきかな）。これを構造体に適用した場合、構造体のフィールドのmutabilityは、フィールドを保持する構造体のそれを引き継ぐ。つまり、親のmutabilityを子は引き継ぐという原則がある。 なので、こういう感じのコード（疑似コードです）はコンパイルエラーになる。 let bar = Bar { bar: Hoge { hoge: 0 }, barbar: 0, }; /…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsaneyukis.hatenablog.com%2Fentry%2F2014%2F05%2F30%2F230351&quot; title=&quot;#rustlang における構造体のmutabilityと`Cell/RefCell` - saneyuki_s log&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>2014-05-30 23:03:51</published>
  <title>#rustlang における構造体のmutabilityと`Cell/RefCell`</title>
  <type>rich</type>
  <url>https://saneyukis.hatenablog.com/entry/2014/05/30/230351</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
