pub enum ArrayFactory<const A: usize, const N: usize> {}Expand description
A type-level factory for creating aligned arrays based on alignment requirements.
This zero-sized type uses const generics to select the appropriate underlying array type
(U8Array, U16Array, U32Array, or U64Array) based on the alignment requirement A and
the number of elements N.
§Type Parameters
A- The required alignment in bytes (1, 2, 4, or 8).N- The number of elements in the array.
§Examples
use ostd_pod::array_helper::{ArrayFactory, ArrayManufacture};
// Creates a `U32Array<8>` (8 `u32` elements with 4-byte alignment)
type MyArray = <ArrayFactory<4, 8> as ArrayManufacture>::Array;