#iterator #last #whether #yield #extension #containing #size

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

#2460 in Rust patterns

Download history 227/week @ 2024-01-01 224/week @ 2024-01-08 81/week @ 2024-01-15 19/week @ 2024-01-22 32/week @ 2024-01-29 22/week @ 2024-02-05 49/week @ 2024-02-12 57/week @ 2024-02-19 85/week @ 2024-02-26 57/week @ 2024-03-04 55/week @ 2024-03-11 41/week @ 2024-03-18 51/week @ 2024-03-25 95/week @ 2024-04-01 46/week @ 2024-04-08 31/week @ 2024-04-15

226 downloads per month
Used in 4 crates (2 directly)

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