<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Pattern Matching on Michael-F-Bryan</title>
    <link>https://adventures.michaelfbryan.com/tags/pattern-matching/</link>
    <description>Recent content in Pattern Matching on Michael-F-Bryan</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sat, 21 Mar 2026 20:30:29 +0800</lastBuildDate>
    <atom:link href="https://adventures.michaelfbryan.com/tags/pattern-matching/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Daily Rust: Slice Patterns</title>
      <link>https://adventures.michaelfbryan.com/posts/daily/slice-patterns/</link>
      <pubDate>Sat, 14 Aug 2021 00:00:00 +0000</pubDate>
      <guid>https://adventures.michaelfbryan.com/posts/daily/slice-patterns/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://blog.rust-lang.org/2018/05/10/Rust-1.26.html#basic-slice-patterns&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Rust 1.26&lt;/a&gt; introduced a nifty little feature called &lt;em&gt;Basic Slice&#xA;Patterns&lt;/em&gt; which lets you pattern match on slices with a known length. Later on&#xA;in &lt;a href=&#34;https://blog.rust-lang.org/2020/03/12/Rust-1.42.html#subslice-patterns&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Rust 1.42&lt;/a&gt;, this was extended to allow using &lt;code&gt;..&lt;/code&gt; to match on&#xA;&amp;ldquo;everything else&amp;rdquo;.&lt;/p&gt;&#xA;&lt;p&gt;As features go this may seem like a small addition, but it gives developers an&#xA;opportunity to write much more expressive code.&lt;/p&gt;&#xA;&#xA;&lt;div class=&#34;notices note&#34; &gt;&#xA;    &lt;p&gt;The code written in this article is available in the various playground links&#xA;dotted throughout. Feel free to browse through and steal code or inspiration.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
