pub fn try_collect_vec<I: Iterator<Item = T>, T>(
iter: I,
) -> Result<Vec<T>, TryReserveError>
Expand description
Tries to collect the elements of an iterator into a Vec
.
pub fn try_collect_vec<I: Iterator<Item = T>, T>(
iter: I,
) -> Result<Vec<T>, TryReserveError>
Tries to collect the elements of an iterator into a Vec
.