[][src]Function slice_dst::alloc_slice_dst

pub fn alloc_slice_dst<S: ?Sized + SliceDst>(len: usize) -> NonNull<S>

Allocate a slice-based DST with the global allocator.

The returned pointer is owned and completely uninitialized; you are required to initialize it correctly.

If the type to be allocated has zero size, then an arbitrary aligned dangling nonnull pointer is returned.