Trait slice_of_array::SliceNestExt
[−]
[src]
pub trait SliceNestExt<T> { fn nest<V: IsSliceomorphic<Element = T>>(&self) -> &[V]; fn nest_mut<V: IsSliceomorphic<Element = T>>(&mut self) -> &mut [V]; }
Trait for viewing a slice as a slice of arrays, without copying.
Required Methods
fn nest<V: IsSliceomorphic<Element = T>>(&self) -> &[V]
View &[T]
as &[[T;n]]
without copying, panicking on bad input lengths.
fn nest_mut<V: IsSliceomorphic<Element = T>>(&mut self) -> &mut [V]
View &mut [T]
as &mut [[T;n]]
without copying, panicking on bad input lengths.