<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>syu-m-5151</author_name>
  <author_url>https://blog.hatena.ne.jp/syu-m-5151/</author_url>
  <blog_title>じゃあ、おうちで学べる </blog_title>
  <blog_url>https://syu-m-5151.hatenablog.com/</blog_url>
  <categories>
    <anon>Rust</anon>
  </categories>
  <description>はじめに Rust 1.88 (2025年) で if let chain が安定化されました。2024 edition のコードでは積極的に使えます。 &amp;&amp; で if let 条件を連結できるようになり、ネストした if let を平らに書ける構文です。短い変更ですが、効果は大きく出ます。 何を解決するか Option が複数あって、すべて Some だったときだけ何かしたい、という場面。素直に書くとネストになります。 fn first_premium(items: &amp;[String]) -&gt; Option&lt;&amp;str&gt; { if let Some(first) = items.first()…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsyu-m-5151.hatenablog.com%2Fentry%2F2026%2F05%2F03%2F152036&quot; title=&quot;`if let` chain — Rust 1.88 / 2024 edition で実用フェーズに入った - じゃあ、おうちで学べる &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>2026-05-03 15:20:36</published>
  <title>`if let` chain — Rust 1.88 / 2024 edition で実用フェーズに入った</title>
  <type>rich</type>
  <url>https://syu-m-5151.hatenablog.com/entry/2026/05/03/152036</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
