<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Conversions on rustbites</title><link>https://www.rustbites.com/tags/conversions/</link><description>Recent content in Conversions on rustbites</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 19 Apr 2026 17:41:31 +0200</lastBuildDate><atom:link href="https://www.rustbites.com/tags/conversions/index.xml" rel="self" type="application/rss+xml"/><item><title>91. bool::try_from — Convert Integers to Booleans Safely</title><link>https://www.rustbites.com/posts/bite-091/</link><pubDate>Sun, 19 Apr 2026 17:00:00 +0100</pubDate><guid>https://www.rustbites.com/posts/bite-091/</guid><description>&lt;p&gt;Need to turn a &lt;code&gt;0&lt;/code&gt; or &lt;code&gt;1&lt;/code&gt; from a database, config file, or FFI boundary into a &lt;code&gt;bool&lt;/code&gt;? &lt;code&gt;bool::try_from&lt;/code&gt; does it safely — rejecting anything that isn&amp;rsquo;t &lt;code&gt;0&lt;/code&gt; or &lt;code&gt;1&lt;/code&gt;. Stabilized in Rust 1.95.&lt;/p&gt;</description></item></channel></rss>