<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Lazycell on rustbites</title><link>https://www.rustbites.com/tags/lazycell/</link><description>Recent content in Lazycell on rustbites</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 22 Apr 2026 09:38:21 +0200</lastBuildDate><atom:link href="https://www.rustbites.com/tags/lazycell/index.xml" rel="self" type="application/rss+xml"/><item><title>95. LazyLock::get — Peek at a Lazy Value Without Initializing It</title><link>https://www.rustbites.com/posts/bite-095/</link><pubDate>Tue, 21 Apr 2026 17:00:00 +0100</pubDate><guid>https://www.rustbites.com/posts/bite-095/</guid><description>&lt;p&gt;Wanted to know whether a &lt;code&gt;LazyLock&lt;/code&gt; has been initialized yet — without &lt;em&gt;causing&lt;/em&gt; the initialization by touching it? Rust 1.94 stabilises &lt;code&gt;LazyLock::get&lt;/code&gt; and &lt;code&gt;LazyCell::get&lt;/code&gt;, which return &lt;code&gt;Option&amp;lt;&amp;amp;T&amp;gt;&lt;/code&gt; and leave the closure untouched if it hasn&amp;rsquo;t fired.&lt;/p&gt;</description></item></channel></rss>