Function thin_vec::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.