pub trait StreamingIterator<'a> {
type Item;
// Required method
fn next(&'a mut self) -> Option<Self::Item>;
}
Expand description
An iterator trait that supports borrowing from the iterator, by allowing the argument lifetime to be named inside the associated type.