<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanaka-hisasi</author_name>
  <author_url>https://blog.hatena.ne.jp/tanaka-hisasi/</author_url>
  <blog_title>三大サンダー！</blog_title>
  <blog_url>https://daikichi.hatenadiary.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>Rustのコードを書いていて、マクロが頻出するものの理解が不足しており少しばかり気味悪さを覚えていた。 内容を調べる気力が湧いたため、少しばかりRustのマクロについて調べることにする。 本稿はRustのマクロの種類のうち宣言的マクロについての内容を調べたことのメモ書きである。 さて、Rustには宣言的マクロと手続き的マクロという大きく２つの分類のマクロが存在している。 宣言的マクロはprintln!やvec!などといった、suffixに!のつくものがそれである。 宣言的マクロを使うメリット このマクロを利用することのメリットは関数では扱えない可変長引数を扱うことが可能ということ。 以下でpr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdaikichi.hatenadiary.com%2Fentry%2F2021%2F08%2F10%2F230753&quot; title=&quot;Rustの宣言的マクロ - 三大サンダー！&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>2021-08-10 23:07:53</published>
  <title>Rustの宣言的マクロ</title>
  <type>rich</type>
  <url>https://daikichi.hatenadiary.com/entry/2021/08/10/230753</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
