Module align

Source
Expand description

Alignment checking primitives.

Functionsยง

check_alignment
Check whether the given data slice of Ss is properly aligned for reading and writing as a slice of Ts.
check_alignment_mut
Check whether the given mutable data slice of Ss is properly aligned for reading and writing as a slice of Ts, returning the same slice back if it is.