IntoBlockIterator

Trait IntoBlockIterator 

Source
pub trait IntoBlockIterator<const N: usize> {
    type Item: AsSafView<N>;
    type Iter: ExactSizeIterator<Item = Self::Item>;

    // Required method
    fn into_block_iter(self, block_size: usize) -> Self::Iter;
}
Expand description

A type that can be turned into an iterator blocks of SAF sites.

Required Associated Types§

Source

type Item: AsSafView<N>

The type of each individual block.

Source

type Iter: ExactSizeIterator<Item = Self::Item>

The type of iterator.

Required Methods§

Source

fn into_block_iter(self, block_size: usize) -> Self::Iter

Convert this type into an iterator over SAF blocks containing block_size sites per block.

Implementors§

Source§

impl<'a, 'b, const N: usize> IntoBlockIterator<N> for &'b SafView<'a, N>

Source§

type Item = SafView<'a, N>

Source§

type Iter = BlockIter<'a, N>

Source§

impl<'a, const N: usize> IntoBlockIterator<N> for &'a Saf<N>

Source§

type Item = SafView<'a, N>

Source§

type Iter = BlockIter<'a, N>

Source§

impl<'a, const N: usize> IntoBlockIterator<N> for SafView<'a, N>

Source§

type Item = SafView<'a, N>

Source§

type Iter = BlockIter<'a, N>