Module safe_transmute::align[][src]

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.