pub(crate) fn allocate<T, A: Allocator<T>>(
alloc: &mut A,
len: usize,
) -> A::AllocatedMemoryExpand description
Helper function to allocate memory with the given allocator (may crash if the len is 0).
pub(crate) fn allocate<T, A: Allocator<T>>(
alloc: &mut A,
len: usize,
) -> A::AllocatedMemoryHelper function to allocate memory with the given allocator (may crash if the len is 0).