News for hackers. Stuff that matters.
Re:Zero Cost Abstractions by Veedrac on Thursday December 01, 2016 @05:07AM (#13078406)
There is a `windows` iterator.

https://doc.rust-lang.org/std/primitive.slice.html#method.wi...

However, your code would not work as-is, since the window borrows the buffer, so `buffer[i]` cannot be written to. Further, there is no `windows_mut` to let you write to the end of the window, because that would let you get multiple mutable references to a given element.

There are no comments on this comment yet.