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
Steptrait to keep track of the count of iterations. The count starts from the default value provided by theDefaulttrait. - step_
count_ checked - Consumes the iterator, counting the number of iterations.
This uses the
Steptrait to keep track of the count of iterations. The count starts from the default value provided by theDefaulttrait. ReturnsNoneif 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
Steptrait 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
Steptrait to keep track of the count of iterations. ReturnsNoneif the count exceeded the capcity of the count type (T).