Skip to main content

Unflatten

Trait Unflatten 

Source
pub trait Unflatten<M>
where M: ArraySize,
{ type Part; // Required method fn unflatten(self) -> Array<Self::Part, M>; }
Expand description

Defines a sequence that can be split into a sequence of smaller sequences of uniform size.

Required Associated Types§

Source

type Part

Part of the array we’re decomposing into.

Required Methods§

Source

fn unflatten(self) -> Array<Self::Part, M>

Unflatten array into Self::Part chunks.

Implementors§

Source§

impl<'a, T, N, M> Unflatten<M> for &'a Array<T, N>
where N: ArraySize + Div<M> + Rem<M, Output = U0>, M: ArraySize, Quot<N, M>: ArraySize,

Source§

type Part = &'a Array<T, <N as Div<M>>::Output>

Source§

impl<T, N, M> Unflatten<M> for Array<T, N>
where N: ArraySize + Div<M> + Rem<M, Output = U0>, M: ArraySize, Quot<N, M>: ArraySize,

Source§

type Part = Array<T, <N as Div<M>>::Output>