<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>totem_3</author_name>
  <author_url>https://blog.hatena.ne.jp/totem_3/</author_url>
  <blog_title>エンジニアですよ！</blog_title>
  <blog_url>https://totem3.hatenablog.jp/</blog_url>
  <categories>
    <anon>rust</anon>
  </categories>
  <description>Rust の match は非常に強力。 様々なパターンマッチや、 destructuring が使えて非常に便利 詳しくは https://doc.rust-lang.org/book/match.html Patterns たまに String な変数に対して match を使いたいことがある。 が、こんなふうにやろうとしてももちろんできない。 s は String なのに対して、 パターンである &quot;hoge&quot; は &amp;'static str なので型が一致しない。 String リテラルはないし、パターンの部分には enum variant や構造体、リテラルを書くことができるが（slic…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftotem3.hatenablog.jp%2Fentry%2F2016%2F10%2F25%2F212303&quot; title=&quot; Rust メモ String に対して match - エンジニアですよ！&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-10-25 21:23:03</published>
  <title> Rust メモ String に対して match</title>
  <type>rich</type>
  <url>https://totem3.hatenablog.jp/entry/2016/10/25/212303</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
