I have some sample code on the playground that demonstrates my best effort to implement Iterator, IntoIterator and FromIterator on a struct that contains a Vec. I included both a non-generic and a generic version: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=3966644b4cd51c0a8b07351db654ee8d
Can someone please look over it and tell me if this code matches up with best practices or if there can be improvements? For example, I have looked over other tutorials like https://dev.to/dandyvica/yarit-yet-another-rust-iterators-tutorial-46dk which use
std::slice::Iter which I think might be more efficient than my approach but I have been unable to get that to compile.