Skip to main content

aligned_slice

Function aligned_slice 

Source
pub fn aligned_slice<T: Default>(
    capacity: usize,
    alignment: PowerOfTwo,
) -> Result<AlignedSlice<T>, AllocatorError>
Expand description

Create a new AlignedSlice with the given capacity and alignment initialized to T::default()