<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Refcell on rustbites</title><link>https://www.rustbites.com/tags/refcell/</link><description>Recent content in Refcell on rustbites</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 21 May 2026 08:31:37 +0200</lastBuildDate><atom:link href="https://www.rustbites.com/tags/refcell/index.xml" rel="self" type="application/rss+xml"/><item><title>152. RefCell&lt;T&gt; — When You Need to Actually Borrow the Inside</title><link>https://www.rustbites.com/posts/bite-152/</link><pubDate>Wed, 20 May 2026 17:00:00 +0100</pubDate><guid>https://www.rustbites.com/posts/bite-152/</guid><description>&lt;p&gt;This morning&amp;rsquo;s &lt;a href="https://www.rustbites.com/posts/bite-151/"&gt;Cell&amp;lt;T&amp;gt;&lt;/a&gt; only lets you swap whole values in and out. The moment you want to call &lt;code&gt;.push()&lt;/code&gt; on the &lt;code&gt;Vec&lt;/code&gt; inside, or hand out a &lt;code&gt;&amp;amp;str&lt;/code&gt; slice of the &lt;code&gt;String&lt;/code&gt; inside, you need a real &lt;code&gt;&amp;amp;mut&lt;/code&gt; — and that&amp;rsquo;s exactly what &lt;code&gt;RefCell&amp;lt;T&amp;gt;&lt;/code&gt; gives you, just with the aliasing rules checked at runtime instead of compile time.&lt;/p&gt;</description></item></channel></rss>