<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Lazy-Init on rustbites</title><link>https://www.rustbites.com/tags/lazy-init/</link><description>Recent content in Lazy-Init on rustbites</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 13 May 2026 16:19:47 +0200</lastBuildDate><atom:link href="https://www.rustbites.com/tags/lazy-init/index.xml" rel="self" type="application/rss+xml"/><item><title>136. LazyLock::force_mut — Mutate a Lazy Value Without Wrapping It in a Mutex</title><link>https://www.rustbites.com/posts/bite-136/</link><pubDate>Wed, 13 May 2026 09:00:00 +0100</pubDate><guid>https://www.rustbites.com/posts/bite-136/</guid><description>&lt;p&gt;Got a &lt;code&gt;LazyLock&lt;/code&gt; you own outright? With &lt;code&gt;force_mut&lt;/code&gt; (stable in Rust 1.94), you can initialize &lt;em&gt;and&lt;/em&gt; mutate it through &lt;code&gt;&amp;amp;mut LazyLock&lt;/code&gt; — no &lt;code&gt;Mutex&lt;/code&gt;, no &lt;code&gt;RwLock&lt;/code&gt;, no locking dance.&lt;/p&gt;</description></item></channel></rss>