pub fn convert<I>(it: I) -> Convert<I::IntoIter>where
    I: IntoIterator,
Expand description

Turns a normal, non-streaming iterator into a streaming iterator.

let scores = vec![100, 50, 80];
let mut streaming_iter = convert(scores);
while let Some(score) = streaming_iter.next() {
    println!("The score is: {}", score);
}