Expand description
Iterator utility for counting the number of iterations with an arbitrary
type that implements the Step
trait.
Traits§
- Step
Count - Convenience trait to allow using
step_count*
functions as methods. This trait is implemented for everyIterator
.
Functions§
- step_
count - Consumes the iterator, counting the number of iterations.
This uses the
Step
trait to keep track of the count of iterations. The count starts from the default value provided by theDefault
trait. - step_
count_ checked - Consumes the iterator, counting the number of iterations.
This uses the
Step
trait to keep track of the count of iterations. The count starts from the default value provided by theDefault
trait. ReturnsNone
if the count exceeded the capcity of the count type (T
). - step_
count_ from - 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. - step_
count_ from_ checked - 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. ReturnsNone
if the count exceeded the capcity of the count type (T
).