litemap::store

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", so this trait is not object safe.

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

Source§

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

Source§

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

Source§

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

Implementors§