Module ext

Module ext 

Source
Expand description

Extensions to the standard library types.

§Iterators

The iter module provides extensions to iterators.

If you need to work with an iterator of items, one chunk of a given size at a time, you can use the Chunks iterator.

If you need to fold an iterator while allowing for early termination, you can use the FoldWhileExt::fold_while method.

When you need to work with pairs of consecutive items from an iterator, you can use the SlidingWindowExt::sliding_window trait.

§Slices

§Tuples

§Vectors

Modules§

iter
Extensions to the standard library’s Iterator trait.
slice
tuple
vec