IntoStaticChunkIterator

Trait IntoStaticChunkIterator 

Source
pub trait IntoStaticChunkIterator<N>
where Self: Sized + Set, N: Unsigned,
{ type Item; type IterType: Iterator<Item = Self::Item>; // Required method fn into_static_chunk_iter(self) -> Self::IterType; // Provided method fn into_generic_static_chunk_iter(self) -> UniChunkedIter<Self, N> { ... } }
Expand description

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.

Required Associated Types§

Source

type Item

Source

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

Required Methods§

Source

fn into_static_chunk_iter(self) -> Self::IterType

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

Provided Methods§

Source

fn into_generic_static_chunk_iter(self) -> UniChunkedIter<Self, N>

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a [T; 1]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a [T; 2]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a [T; 3]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a [T; 4]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a [T; 5]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a [T; 6]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a [T; 7]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a [T; 8]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a [T; 9]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a [T; 10]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a [T; 11]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a [T; 12]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a [T; 13]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a [T; 14]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a [T; 15]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a [T; 16]
where N: Unsigned + Array<T>,

Source§

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

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a mut [T; 1]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a mut [T; 2]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a mut [T; 3]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a mut [T; 4]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a mut [T; 5]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a mut [T; 6]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a mut [T; 7]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a mut [T; 8]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a mut [T; 9]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a mut [T; 10]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a mut [T; 11]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a mut [T; 12]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a mut [T; 13]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a mut [T; 14]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a mut [T; 15]
where N: Unsigned + Array<T>,

Source§

impl<'a, T, N> IntoStaticChunkIterator<N> for &'a mut [T; 16]
where N: Unsigned + Array<T>,

Source§

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

Source§

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

Source§

impl<N, S, T> IntoStaticChunkIterator<N> for (S, T)

Source§

impl<T, N> IntoStaticChunkIterator<N> for Vec<T>
where N: Unsigned + Array<T>, T: Pod,

Implementors§