Function thin_vec::layout

source ·
pub(crate) fn layout<T>(cap: usize) -> Layout
Expand description

Gets the layout necessary to allocate a ThinVec<T>

§Panics

Panics if the required size overflows isize::MAX.