Skip to main content

StoreIterable

Trait StoreIterable 

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

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

Implementors§