As I understand correct I can implement iterator like this pub fn iter(&self) -> impl…
- User
As I understand correct I can implement iterator like this pub fn iter(&self) -> impl Iterator<Item=&Document> { self.collection.values() }
Or like this impl Iterator for Collection right?
- Assistant
Yes, your understanding is mostly correct, but let me clarify a few details for you.