forge::revm::interpreter::primitives::alloy_primitives::utils

Function try_collect_vec

pub fn try_collect_vec<I, T>(iter: I) -> Result<Vec<T>, TryReserveError>
where I: Iterator<Item = T>,
Expand description

Tries to collect the elements of an iterator into a Vec.