Skip to main content

flatten_slice_elements

Function flatten_slice_elements 

Source
pub fn flatten_slice_elements<T, const N: usize>(source: &[[T; N]]) -> &[T]
Expand description

Transmutes a slice of n arrays each of length N, into a slice of N * n elements.

This function just re-interprets the underlying memory and is thus zero-copy.