pub trait Iterate {
type Item;
type Iterator: Iterator<Item = Self::Item>;
// Required method
fn iterate(self) -> Self::Iterator;
// Provided methods
fn map<F, B>(self, f: F) -> IntoMap<Self, F>
where F: FnOnce(Self::Item) -> B,
Self: Sized { ... }
fn collect<B: Collect<Self::Item>>(self) -> B
where Self: Sized { ... }
}
Expand description
Provide sequential, iterated access to items.