pub trait GridStorageIntoIter {
    type Item;
    type Iter: Iterator<Item = Self::Item>;

    // Required method
    fn storage_iter(&self) -> Self::Iter;
}
Expand description

Extra trait for GridStorage to support iteration.

This is a separate trait to make the lifetimes work. It should be implemented on a reference to the storage, rather than directly. This allows us to capture the lifetime without polluting the main trait.

Required Associated Types§

source

type Item

source

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

Required Methods§

source

fn storage_iter(&self) -> Self::Iter

Implementations on Foreign Types§

source§

impl<'sto, Item, Encoding> GridStorageIntoIter for &'sto BitVec<Item, Encoding>where Encoding: BitVecEncoding<Item>, Item: Clone,

§

type Item = Item

§

type Iter = BitVecIter<'sto, Item, Encoding>

source§

fn storage_iter(&self) -> Self::Iter

source§

impl<'sto, Item> GridStorageIntoIter for &'sto Vec<Item>where Item: Clone,

§

type Item = Item

§

type Iter = GridStorageClone<Iter<'sto, Item>>

source§

fn storage_iter(&self) -> Self::Iter

Implementors§