Expand description
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§
- Skip
First - 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?”).
- With
Status - Iterator wrapper which keeps track of the status. See
IterStatusExt::with_statusfor more information.
Traits§
- Iter
Status Ext - Adds the
with_statusmethod to all iterators.