reth::primitives::revm_primitives::alloy_primitives::utils

Function vec_try_with_capacity

pub fn vec_try_with_capacity<T>(
    capacity: usize,
) -> Result<Vec<T>, TryReserveError>
Expand description

Tries to create a Vec with the given capacity.