Skip to main content

Flatten

Trait Flatten 

Source
pub trait Flatten<T, M: ArraySize> {
    type OutputSize: ArraySize;

    // Required method
    fn flatten(self) -> Array<T, Self::OutputSize>;
}
Expand description

Defines a sequence of sequences that can be merged into a bigger overall sequence.

Required Associated Types§

Source

type OutputSize: ArraySize

Size of the output array.

Required Methods§

Source

fn flatten(self) -> Array<T, Self::OutputSize>

Flatten array.

Implementors§

Source§

impl<T, N, M> Flatten<T, <M as Mul<N>>::Output> for Array<Array<T, M>, N>
where N: ArraySize, M: ArraySize + Mul<N>, Prod<M, N>: ArraySize,

Source§

type OutputSize = <M as Mul<N>>::Output