pub trait Stream<'a> {
type Item;
// Required method
fn next(&'a mut self) -> Option<Self::Item>;
}
Expand description
Stream abstraction
A stream is a construct which offers one item at a time. Once the next item is available, the previous one is discarded and thus not accessible any longer.