pub trait StoreIterable<'a, K: 'a + ?Sized, V: 'a + ?Sized>: Store<K, V> {
    type KeyValueIter: Iterator<Item = (&'a K, &'a V)> + DoubleEndedIterator + 'a;

    // Required method
    fn lm_iter(&'a self) -> Self::KeyValueIter;
}
Expand description

Iterator methods for the LiteMap store.

Required Associated Types§

Required Methods§

source

fn lm_iter(&'a self) -> Self::KeyValueIter

Returns an iterator over key/value pairs.

Implementations on Foreign Types§

source§

impl<'a, K: 'a, V: 'a> StoreIterable<'a, K, V> for Vec<(K, V)>

§

type KeyValueIter = Map<Iter<'a, (K, V)>, fn(_: &(K, V)) -> (&K, &V)>

source§

fn lm_iter(&'a self) -> Self::KeyValueIter

source§

impl<'a, K: 'a, V: 'a> StoreIterable<'a, K, V> for &'a [(K, V)]

§

type KeyValueIter = Map<Iter<'a, (K, V)>, fn(_: &(K, V)) -> (&K, &V)>

source§

fn lm_iter(&'a self) -> Self::KeyValueIter

Implementors§