Function zerocopy::extend_vec_zeroed
source · pub fn extend_vec_zeroed<T: FromZeros>(v: &mut Vec<T>, additional: usize)
Available on crate feature
alloc
only.Expand description
Extends a Vec<T>
by pushing additional
new items onto the end of the
vector. The new items are initialized with zeros.
§Panics
Panics if Vec::reserve(additional)
fails to reserve enough memory.