Iterator that returns windows into an owned buffer – without copying?
The Issue I’m trying to implement an iterator that yields windows (i.e. slices) into a buffer owned by the iterator itself – for example, if the buffer contains [0, 1, 2, 3, 4, 5], the iterator might yield [0, 1, 2, 3], [2, 3], or [3, 4, 5]. Here’s a minimal example (Playground): struct Slicer<‘a> […]