[][src]Trait flatk::IntoStaticChunkIterator

pub trait IntoStaticChunkIterator<N> where
    Self: Sized + Set + Dummy,
    N: Unsigned
{ type Item; type IterType: Iterator<Item = Self::Item>; fn into_static_chunk_iter(self) -> Self::IterType; fn into_generic_static_chunk_iter(self) -> UniChunkedIter<Self, N> { ... } }

Iterate over chunks whose size is determined at compile time. Note that each chunk may not be a simple array, although a statically sized chunk of a slice is an array.

Associated Types

type Item

type IterType: Iterator<Item = Self::Item>

Loading content...

Required methods

fn into_static_chunk_iter(self) -> Self::IterType

This function should panic if this collection length is not a multiple of N.

Loading content...

Provided methods

Important traits for UniChunkedIter<S, N>
fn into_generic_static_chunk_iter(self) -> UniChunkedIter<Self, N>

Simply call this method for all types that implement SplitPrefix<N>.

Loading content...

Implementations on Foreign Types

impl<I, N> IntoStaticChunkIterator<N> for Range<I> where
    Self: Set + SplitPrefix<N> + Dummy,
    N: Unsigned
[src]

type Item = Self::Prefix

type IterType = UniChunkedIter<Self, N>

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a [T] where
    Self: SplitPrefix<N>,
    N: Unsigned
[src]

type Item = Self::Prefix

type IterType = UniChunkedIter<Self, N>

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a mut [T] where
    Self: SplitPrefix<N>,
    N: Unsigned
[src]

type Item = Self::Prefix

type IterType = UniChunkedIter<Self, N>

impl<N, S, T> IntoStaticChunkIterator<N> for (S, T) where
    S: IntoStaticChunkIterator<N>,
    T: IntoStaticChunkIterator<N>,
    N: Unsigned
[src]

type Item = (S::Item, T::Item)

type IterType = Zip<S::IterType, T::IterType>

impl<T, N> IntoStaticChunkIterator<N> for Vec<T> where
    N: Unsigned + Array<T>, 
[src]

Loading content...

Implementors

impl<'_, S, N> IntoStaticChunkIterator<N> for ChunkedView<'_, S> where
    Self: Set + SplitPrefix<N> + Dummy,
    N: Unsigned
[src]

type Item = Self::Prefix

type IterType = UniChunkedIter<Self, N>

impl<S, N, M> IntoStaticChunkIterator<N> for UniChunked<S, M> where
    Self: Set + SplitPrefix<N> + Dummy,
    N: Unsigned
[src]

type Item = Self::Prefix

type IterType = UniChunkedIter<Self, N>

Loading content...