<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rail44</author_name>
  <author_url>https://blog.hatena.ne.jp/rail44/</author_url>
  <blog_title>rail44 (アメミヤ)</blog_title>
  <blog_url>https://rail.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>しよう(提案) この記事はRust Advent Calendar 2016 - Qiitaの9日目の記事となります。 コンパイラプラグイン Rustはコンパイラであるrustcに対して、ユーザーがプラグインとして機能を追加できる仕組みがあります。 コンパイル時に処理を定義できる仕組みというと、マクロが思い浮かびますが、 macro_rules! foo { (x =&gt; $e:expr) =&gt; (println!(&quot;mode X: {}&quot;, $e)); (y =&gt; $e:expr) =&gt; (println!(&quot;mode Y: {}&quot;, $e)); } fn main() { foo!(y =&gt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frail.hatenablog.jp%2Fentry%2F2016%2F12%2F09%2F201620&quot; title=&quot;Rustのコンパイラプラグインで実装を型定義から自動生成しよう - rail44 (アメミヤ)&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-12-09 20:16:20</published>
  <title>Rustのコンパイラプラグインで実装を型定義から自動生成しよう</title>
  <type>rich</type>
  <url>https://rail.hatenablog.jp/entry/2016/12/09/201620</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
