std::core::mem::allocator

alloc_array_aligned

macro alloc_array_aligned(Allocator allocator, $Type, usz elements) @nodiscard
Allocate using an aligned allocation. This is necessary for types with a default memory alignment
exceeding DEFAULT_MEM_ALIGNMENT. IMPORTANT! It must be freed using free_aligned.

Parameters