std::core::mem

new_aligned

macro new_aligned($Type, #init = ...) @nodiscard @safemacro
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