Skip to main content

to_vec

Function to_vec 

Source
pub fn to_vec<T, I: Iterator<Item = T> + Sized>(iter: I) -> Vec<T>
Expand description

Converts an iterator into a vector.

Useful when you to cache the result of an iterator for future use.

Unwraps all results from the iterator items.