Function thin_vec::header_with_capacity
source · pub(crate) fn header_with_capacity<T>(cap: usize) -> NonNull<Header>
Expand description
Allocates a header (and array) for a ThinVec<T>
with the given capacity.
§Panics
Panics if the required size overflows isize::MAX
.