IntoIterator

We'll cover the following...

Here’s an important takeaway from our VecIter in the previous lesson: a Vec on its own doesn’t have enough information to be iterated over. We need to know the current position in the iteration, and a Vec doesn’t have that information. Therefore, it’s impossible to have an Iterator implementation for Vec. And sure enough, there is no such ...

Access this course and 1400+ top-rated courses and projects.