In my adventures with Rust I came across a case in which it would be interesting to use a more rustonic way of approaching the problem. But before we go to the case, I have a struct that contains a Vec that can be read by the user, but I don't want to expose this Vec in any way. My approach was to learn about iterators and make practical use of it. Cool, that would be very interesting, I went to read the documentation and ...
How many methods, how many lines, wait a moment, I just need to implement next and Item, very simple. I defined Item and now I will define next ... Hm this example is not useful, internally I use a Vec and not an i32. I research Google a little more and they are saying that I don't need to use Iterator but IntoIterator, hm that doesn't make sense but let's test it. It worked well but my Vec is being consumed. I research how to create a version that does not consume the structure and more difficulties arise and I end up not understanding anything.
In C ++ it would be more practical to do this, even with potential future problems it would still be more advantageous than researching so much and not solving the problem and ending up frustrated.
I believe there is a lack of a "Guide for idiots for advanced topics in Rust", I understand that almost everything in Rust has a purpose, although that purpose is only clear to anyone who is already a guru.
I don't want to speak ill of the Rust language and the community, just let my outburst, which must be the same as that of many others who chose to leave the language rather than persist.