Function bytemuck::allocation::try_zeroed_vec
source · Expand description
Allocates a Vec<T>
of length and capacity exactly equal to length
and
all elements zeroed.
Failure
This fails if the allocation fails, or if a layout cannot be calculated for the allocation.