pub fn to_vec<T, I: Iterator<Item = T> + Sized>(iter: I) -> Vec<T>
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.