Function alloc_size

Source
pub(crate) fn alloc_size<T>(cap: usize) -> usize
Expand description

Gets the size necessary to allocate a ThinVec<T> with the give capacity.

ยงPanics

This will panic if isize::MAX is overflowed at any point.