Crate step_count
source ·Expand description
Iterator utility for counting the number of iterations with an arbitrary
type that implements the Step
trait.
Traits
- Convenience trait to allow using
step_count*
functions as methods. This trait is implemented for everyIterator
.
Functions
- Consumes the iterator, counting the number of iterations, starting from a given value. This uses the
Step
trait to keep track of the count of iterations.