ecking on every subscript&quot; is orthogonal to the AxM problem - it only checks that the index is within range. The borrow checker will still statically prevent two mutable references to the same element (and indeed prevent two mutable references to anywhere in the Vec). Getting around this safely likely means using a Vec&lt;RefCell&lt;T&gt;&gt;</div></div><div class="reply-list"></div></div></div><div id="AAAATTv0iUo" class="comment"><div class="json">null</div><div class="author-picture"><img src="https