#iterator #last #whether #yield #containing #extension #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

#2163 in Rust patterns

Download history 158/week @ 2024-08-31 21/week @ 2024-09-07 23/week @ 2024-09-14 33/week @ 2024-09-21 27/week @ 2024-09-28 41/week @ 2024-10-05 155/week @ 2024-10-12 10/week @ 2024-10-19 7/week @ 2024-10-26 19/week @ 2024-11-02 22/week @ 2024-11-09 4/week @ 2024-11-16 16/week @ 2024-11-23 69/week @ 2024-11-30 57/week @ 2024-12-07 20/week @ 2024-12-14

162 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