pub fn slice_to_blocks_mut<ALIGN, const SIZE: usize>(
slice: &mut [u8],
) -> &mut [Aligned<ALIGN, [u8; SIZE]>]where
ALIGN: Alignment,Expand description
Cast a mutable byte slice to an aligned mutable slice of blocks.
This function panics if
- ALIGNment is not a multiple of SIZE
- The input slice is not a multiple of SIZE
- The input slice does not have the correct alignment.