<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Box on rustbites</title><link>https://www.rustbites.com/tags/box/</link><description>Recent content in Box on rustbites</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 08 Apr 2026 12:55:25 +0200</lastBuildDate><atom:link href="https://www.rustbites.com/tags/box/index.xml" rel="self" type="application/rss+xml"/><item><title>67. Box::leak — Turn Owned Data Into a Static Reference</title><link>https://www.rustbites.com/posts/bite-067/</link><pubDate>Tue, 07 Apr 2026 17:00:00 +0100</pubDate><guid>https://www.rustbites.com/posts/bite-067/</guid><description>&lt;p&gt;Sometimes you need a &lt;code&gt;&amp;amp;'static str&lt;/code&gt; but all you have is a &lt;code&gt;String&lt;/code&gt;. Meet &lt;code&gt;Box::leak&lt;/code&gt; — it deliberately leaks heap memory so you get a reference that lives forever.&lt;/p&gt;</description></item></channel></rss>