//! Functions for allocating arrays.
/// Allocate an array of memory on the heap.
////// Note that the contents of the array are not initialized and the values are undefined.
pubunsafefnallocate<T>(size:usize)->Box<[T]>{letmut vec =Vec::with_capacity(size);
vec.set_len(size);
vec.into_boxed_slice()}