Crate splop[−][src]
Functions and types to do something special when repeating for the first or last time (or in between!). This crate offers two distinct features:
IterStatusExt::with_status
: a new method for iterators, that creates a new iterator which yields the item paired with information to tell you if this is the first/last item.SkipFirst
: a simple struct to help you always do something, except on the first repetition. Works without iterators, too!
Structs
SkipFirst |
Allows you to always do something, except the first time. |
Status |
The status of an item from an iterator (e.g. "is this the first item?"). |
WithStatus |
Iterator wrapper which keeps track of the status. See
|
Traits
IterStatusExt |
Adds the |