<?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;Tから&amp;mut Tへの型変換*1と同オブジェクトに対する変更操作は、未定義動作(undefined behavior)とされている。これは単にRustコンパイラのBorrow Checkerを騙すだけでなく、該当プログラムの動作が不定となり深刻な障害要因になり得る。*2下記プログラムをrustc 1.15.1でコンパイル＆実行すると、Debugビルドではおそらく期待通り動作するが、Releaseビルドでは★のassert!マクロより実行時エラーが報告される*3。なお明示的な#[allow(mutable_transmutes)]属性を削除すれば、コンパイル…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20170317%2Fp1&quot; title=&quot;危険な型変換:&amp;amp;T→&amp;amp;mut T - 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>2017-03-17 00:00:00</published>
  <title>危険な型変換:&amp;T→&amp;mut T</title>
  <type>rich</type>
  <url>https://yohhoy.hatenadiary.jp/entry/20170317/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
