pub unsafe fn uninit_vector<T>(length: usize) -> Vec<T> 
Expand description

Returns a vector of the specified length with un-initialized memory.

This is usually faster than requesting a vector with initialized memory and is useful when we overwrite all contents of the vector immediately after memory allocation.

Safety

Using values from the returned vector before initializing them will lead to undefined behavior.