<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Rust-1.91 on rustbites</title><link>https://www.rustbites.com/tags/rust-1.91/</link><description>Recent content in Rust-1.91 on rustbites</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 18 May 2026 14:06:31 +0200</lastBuildDate><atom:link href="https://www.rustbites.com/tags/rust-1.91/index.xml" rel="self" type="application/rss+xml"/><item><title>147. Cell::as_array_of_cells — Mutate One Slot of a Cell-Wrapped Array</title><link>https://www.rustbites.com/posts/bite-147/</link><pubDate>Mon, 18 May 2026 09:00:00 +0100</pubDate><guid>https://www.rustbites.com/posts/bite-147/</guid><description>&lt;p&gt;You have a &lt;code&gt;Cell&amp;lt;[i32; 4]&amp;gt;&lt;/code&gt; and you want to bump element &lt;code&gt;[2]&lt;/code&gt;. &lt;code&gt;cell.get()&lt;/code&gt;, mutate the copy, &lt;code&gt;cell.set(...)&lt;/code&gt; the whole thing back — for one slot? &lt;code&gt;Cell::as_array_of_cells&lt;/code&gt; hands you &lt;code&gt;&amp;amp;[Cell&amp;lt;i32&amp;gt;; 4]&lt;/code&gt; so each slot is its own little Cell.&lt;/p&gt;</description></item></channel></rss>