Function rin::ecs::streaming_iterator::convert [−][src]
pub fn convert<I>(it: I) -> Convert<<I as IntoIterator>::IntoIter> where
I: IntoIterator,
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); }