1. 14
  1. 2

    Great little writeup! I understood what &mut &T means, but I didn’t realize (or hadn’t considered) that the slice includes the length and can be mutated separately. Admittedly, I haven’t worked very extensively with Rust…

    1. 1

      I’ve also found &mut &[T] helpful for parsers when I want to store the changing “remainder” of what’s left to be parsed, and I want some inner function to mutate that remainder in its own scope.