pub fn alloc_zeroed<'alloc, Alloc>(
this: &'alloc Alloc,
layout: NonZeroLayout,
) -> Option<Allocation<'alloc>>where
Alloc: LocalAlloc<'alloc> + ?Sized,
Expand description
Allocate a block of memory initialized with zeros.
See LocalAlloc::alloc_zeroed
for more information. This is a default implementation
that might be less efficient than a dedicated one. It only uses the alloc
method.