<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ema_hiro</author_name>
  <author_url>https://blog.hatena.ne.jp/ema_hiro/</author_url>
  <blog_title>emahiro/b.log</blog_title>
  <blog_url>https://ema-hiro.hatenablog.com/</blog_url>
  <categories>
    <anon>Rust</anon>
  </categories>
  <description>Overview Rust の Pattern matching がとても便利だなと思ったので備忘録です。 TRPL には以下のように記載されています。 doc.rust-jp.rs これを読めばパターン記法に関して必要なことは大体網羅されてるので本当にドキュメントが充実してるいい環境だなと思います。Rust。 単純なパターンマッチング let x = 10; match x { 1 =&gt; print!(&quot;one\n&quot;), 2 =&gt; print!(&quot;two\n&quot;), _ =&gt; print!(&quot;none\n&quot;) }; switch ケースの default 的などこにもマッチしなかった場合には …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fema-hiro.hatenablog.com%2Fentry%2F2021%2F07%2F27%2F231804&quot; title=&quot;Rust のパターン記法 ( Pattern matching ) - emahiro/b.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>2021-07-27 23:18:04</published>
  <title>Rust のパターン記法 ( Pattern matching )</title>
  <type>rich</type>
  <url>https://ema-hiro.hatenablog.com/entry/2021/07/27/231804</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
