Skip to main content

vec_with_capacity

Function vec_with_capacity 

Source
pub fn vec_with_capacity<T>(capacity: usize) -> Vec<T>
Expand description

Construct a Vec pre-allocated for at least capacity items.