pub(crate) fn layout<T>(cap: usize) -> Layout
Gets the layout necessary to allocate a ThinVec<T>
ThinVec<T>
Panics if the required size overflows isize::MAX when rounded up to the required alignment.
isize::MAX