<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bool on rustbites</title><link>https://www.rustbites.com/tags/bool/</link><description>Recent content in Bool on rustbites</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 27 Apr 2026 09:50:14 +0200</lastBuildDate><atom:link href="https://www.rustbites.com/tags/bool/index.xml" rel="self" type="application/rss+xml"/><item><title>103. bool::then_some — Turn a Condition Into an Option Without an if</title><link>https://www.rustbites.com/posts/bite-103/</link><pubDate>Mon, 27 Apr 2026 08:00:00 +0100</pubDate><guid>https://www.rustbites.com/posts/bite-103/</guid><description>&lt;p&gt;Writing &lt;code&gt;if condition { Some(value) } else { None }&lt;/code&gt; for the hundredth time? &lt;code&gt;bool::then_some&lt;/code&gt; collapses that whole pattern into a single chainable call.&lt;/p&gt;</description></item></channel></rss>