pub fn convert_ref<'a, I, T: ?Sized>(
    iterator: I
) -> ConvertRef<'a, I::IntoIter, T>where
    I: IntoIterator<Item = &'a T>,
Expand description

Turns an iterator of references into a streaming iterator.

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