Skip to main content

try_vec

Function try_vec 

Source
pub fn try_vec<T>(n: usize) -> RtResult<Vec<T>>
Expand description

An empty vector with room for exactly n items, or a MemoryError panic if that much memory cannot be had (see check_alloc).