Trait slice_of_array::SliceFlatExt
[−]
[src]
pub trait SliceFlatExt<T> { fn flat(&self) -> &[T]; fn flat_mut(&mut self) -> &mut [T]; }
Trait for viewing a slice of arrays as a flat slice, without copying.
Required Methods
fn flat(&self) -> &[T]
View &[[T; n]]
as &[T]
fn flat_mut(&mut self) -> &mut [T]
View &mut [[T; n]]
as &mut [T]