allocate_aligned_slice

Function allocate_aligned_slice 

Source
pub fn allocate_aligned_slice<AlignTo, T: Default>(count: usize) -> Box<[T]>
Expand description

Allocate a boxed slice of count Ts aligned to the AlignTo type.

ยงPanics

Panics if count is 0 or memory allocation fails.