<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Weak on rustbites</title><link>https://www.rustbites.com/tags/weak/</link><description>Recent content in Weak on rustbites</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 25 May 2026 10:21:45 +0200</lastBuildDate><atom:link href="https://www.rustbites.com/tags/weak/index.xml" rel="self" type="application/rss+xml"/><item><title>161. Weak&lt;T&gt; — The Non-Owning Pointer That Breaks Rc Cycles</title><link>https://www.rustbites.com/posts/bite-161/</link><pubDate>Mon, 25 May 2026 09:00:00 +0100</pubDate><guid>https://www.rustbites.com/posts/bite-161/</guid><description>&lt;p&gt;&lt;a href="https://www.rustbites.com/posts/bite-159/"&gt;&lt;code&gt;Rc&amp;lt;T&amp;gt;&lt;/code&gt;&lt;/a&gt; is a counter, not a tracing GC: two &lt;code&gt;Rc&lt;/code&gt;s pointing at each other will sit in memory forever, each propping the other&amp;rsquo;s strong-count above zero. &lt;code&gt;Weak&amp;lt;T&amp;gt;&lt;/code&gt; is the cure — a pointer that observes an &lt;code&gt;Rc&lt;/code&gt;&amp;rsquo;s allocation without keeping it alive.&lt;/p&gt;</description></item></channel></rss>