pub trait StorageIterator<H>where
    H: Hasher,
{ type Backend; type Error; fn next_key(
        &mut self,
        backend: &Self::Backend
    ) -> Option<Result<StorageKey, Self::Error>>; fn next_pair(
        &mut self,
        backend: &Self::Backend
    ) -> Option<Result<(StorageKey, StorageValue), Self::Error>>; fn was_complete(&self) -> bool; }
Expand description

A trait for a raw storage iterator.

Required Associated Types§

The state backend over which the iterator is iterating.

The error type.

Required Methods§

Fetches the next key from the storage.

Fetches the next key and value from the storage.

Returns whether the end of iteration was reached without an error.

Implementors§