#iterator #tuple #exact #size #last #extension #item

iterator-endiate

Extension method for (exact size) iterators which yields tuple containing whether item is last in iterator

3 unstable releases

0.2.1 Dec 30, 2022
0.2.0 Dec 28, 2022
0.1.0 Dec 7, 2021

#848 in Rust patterns

Download history 1/week @ 2022-12-01 1/week @ 2022-12-08 13/week @ 2022-12-22 36/week @ 2022-12-29 8/week @ 2023-01-05 4/week @ 2023-01-12 7/week @ 2023-01-19 8/week @ 2023-01-26 3/week @ 2023-02-02 12/week @ 2023-02-09 9/week @ 2023-02-16 33/week @ 2023-02-23 61/week @ 2023-03-02 32/week @ 2023-03-09 103/week @ 2023-03-16

229 downloads per month
Used in 3 crates (via ezno-parser)

MIT license

4KB

Iterator endiate

Adds two new methods to iterators (specifically only ExactSizeIterators) for evaluating whether the item is the last in the iterator.

Similar to Iterator::enumerate which adds counts to items.

No runtime deps