Module safe_transmute::align

source ·
Expand description

Alignment checking primitives.

Functions§

  • Check whether the given data slice of Ss is properly aligned for reading and writing as a slice of Ts.
  • 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.