<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yohhoy</author_name>
  <author_url>https://blog.hatena.ne.jp/yohhoy/</author_url>
  <blog_title>yohhoyの日記</blog_title>
  <blog_url>https://yohhoy.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Rust</anon>
  </categories>
  <description>Rust言語のミュータブル参照(&amp;mut T)の振る舞いについてメモ。［本記事はRust 1.10/Stable準拠］ミュータブル参照m1から新しいミュータブル参照m2を変数束縛(variable binding)するとき、型の明示有無によって(a)ミュータブル参照の所有権が移動（ムーブ）するケースと、(b)ミュータブル参照の再借用(reborrow)が行われるケースが存在する。 // m2の変数束縛で型推論 let mut x: i32 = 0; let m1: &amp;mut i32 = &amp;mut x; { let m2 = m1; // (a1) m1からm2へムーブ *m2 = 42; } …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20160726%2Fp1&quot; title=&quot;ミュータブル参照のムーブと再借用 - yohhoyの日記&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>2016-07-26 00:00:00</published>
  <title>ミュータブル参照のムーブと再借用</title>
  <type>rich</type>
  <url>https://yohhoy.hatenadiary.jp/entry/20160726/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
