DEV Community

Discussion on: YARIT: Yet Another Rust Iterators Tutorial

Collapse
rsalmei profile image
Rogério Sampaio de Almeida

Really? To try to explain into_iter, you call another into_iter?? And to explain FromIterator, you call a collect??? 🤦‍♂️
Your helper structs should have the current state of the iteration, you should have implemented them all manually, and just cite these special cases, when you can pass-through some methods to some internal fields.