alloy_primitives::utils

Function vec_try_with_capacity

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

Tries to create a Vec with the given capacity.