7 ms·
Not all impure iterators can be resumed. But any pure iterator can be converted to a resumable iterator with a generic conversion function.
by gregwebs 1y ago
Not all impure iterators can be resumed. But any pure iterator can be converted to a resumable iterator with a generic conversion function.
- catlifeonmars 1y ago> any pure iterator can be converted to a resumable iterator with a generic conversion function. Makes sense > Not all impure iterators can be resumed How do you mean? In my head resuming an iterator is just partially unrolling a loop.
- nine_k 1y agoAn impure iterator can panic, so you can't resume?