header_with_capacity

Function header_with_capacity 

Source
pub(crate) fn header_with_capacity<T>(
    cap: usize,
    is_auto: bool,
) -> 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.