pub trait AsIterator<'a, K, V>: StorageBackend {
    type AsIter: Iterator<Item = Result<(K, V), Self::Error>>;

    fn iter(&'a self) -> Result<Self::AsIter, Self::Error>;
}
Expand description

AsIterator<'a, K, V> trait extends the StorageBackend with iter operation for the (key: K, value: V) pair; therefore, it should be explicitly implemented for the corresponding StorageBackend.

Required Associated Types

Type to iterate through the <K, V> collection.

Required Methods

Returns a Iterator object for the provided <K, V> collection.

Implementors