Trait memtable::prelude::CellIter[][src]

pub trait CellIter<T>: Iterator<Item = T> {
    fn row(&self) -> usize;
fn col(&self) -> usize; fn next_with_pos(&mut self) -> Option<(Position, T)> { ... }
fn zip_with_position(self) -> ZipPosition<T, Self>

Notable traits for ZipPosition<T, I>

impl<T, I> Iterator for ZipPosition<T, I> where
    I: CellIter<T>, 
type Item = (Position, T);
{ ... } }
Expand description

Represents an iterator over some part of a table at the granularity of individual cells within the table

Required methods

Returns the row of the next item returned by the iterator

Returns the column of the next item returned by the iterator

Provided methods

Consumes next item in iterator, returning it with the cell’s position

Zips up a cell iterator with the cell’s position

Implementors