pub trait GeneratorIterator { type Item; type Iter: Iterator<Item = Self::Item>; // Required method fn into_iter(self) -> Self::Iter; }