at we use indices, checking on every subscript, or &amp;quot;purely&amp;quot; do all of our modifications later, which are both safer.&amp;quot;</div></div><div class="comment-content">Maybe worth noting here that indices also still prevent us from holding two mutable references to an element (or indeed the whole Vec) at the same time, so &quot;checking on every subscript&quot; is actually not related to the borrow checker problem.</div></div><div class="reply-list"></div></div></div><div id="AAAATTv0iTw" c