<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hashing on rustbites</title><link>https://www.rustbites.com/tags/hashing/</link><description>Recent content in Hashing on rustbites</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 14 Aug 2026 07:55:35 +0200</lastBuildDate><atom:link href="https://www.rustbites.com/tags/hashing/index.xml" rel="self" type="application/rss+xml"/><item><title>305. to_bits — Hash and Dedup Floats Without a Wrapper Crate</title><link>https://www.rustbites.com/posts/bite-305/</link><pubDate>Sat, 08 Aug 2026 09:00:00 +0100</pubDate><guid>https://www.rustbites.com/posts/bite-305/</guid><description>&lt;p&gt;&lt;code&gt;HashSet&amp;lt;f64&amp;gt;&lt;/code&gt; doesn&amp;rsquo;t compile — floats aren&amp;rsquo;t &lt;code&gt;Hash&lt;/code&gt; or &lt;code&gt;Eq&lt;/code&gt;. &lt;code&gt;f64::to_bits&lt;/code&gt; turns each float into its exact &lt;code&gt;u64&lt;/code&gt; bit pattern, which is both.&lt;/p&gt;</description></item></channel></rss>