Skip to main content

Module array_helper

Module array_helper 

Source
Expand description

Aligned array helpers for Pod types.

This module provides type-level utilities for creating arrays with specific alignment requirements. It’s primarily used internally to support Pod unions that need to maintain precise memory layouts with guaranteed alignment.

Structs§

U8Array
A transparent wrapper around [u8; N] with guaranteed 1-byte alignment.
U16Array
A transparent wrapper around [u16; N] with guaranteed 2-byte alignment.
U32Array
A transparent wrapper around [u32; N] with guaranteed 4-byte alignment.
U64Array
A transparent wrapper around [u64; N] with guaranteed 8-byte alignment.

Enums§

ArrayFactory
A type-level factory for creating aligned arrays based on alignment requirements.

Traits§

ArrayManufacture
Trait that associates an ArrayFactory with its corresponding aligned array type.