alloy_primitives::utils

Function try_collect_vec

Source
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.