Confusion about Chunks iterator

Is the Chunks iterator part of std:: or part of the itertools crate?


And itertools::structs::Chunks – these are distinct types. The std one is an iterator on slices, providing items that are smaller slices. In itertools, it’s an adapter on any input iterator, and it provides Chunk items that are themselves iterable to get its elements.

Thanks @cuviper and @KrishnaSannasi. Unfortunately their uses are close which is confusing.