litemap::store

Trait StoreIterableMut

Source
pub trait StoreIterableMut<'a, K: 'a, V: 'a>: StoreMut<K, V> + StoreIterable<'a, K, V> {
    type KeyValueIterMut: Iterator<Item = (&'a K, &'a mut V)> + DoubleEndedIterator + 'a;

    // Required method
    fn lm_iter_mut(&'a mut self) -> Self::KeyValueIterMut;
}

Required Associated Types§

Required Methods§

Source

fn lm_iter_mut(&'a mut self) -> Self::KeyValueIterMut

Returns an iterator over key/value pairs, with a mutable value.

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> StoreIterableMut<'a, K, V> for Vec<(K, V)>

Source§

type KeyValueIterMut = Map<IterMut<'a, (K, V)>, fn(_: &mut (K, V)) -> (&K, &mut V)>

Source§

fn lm_iter_mut(&'a mut self) -> Self::KeyValueIterMut

Implementors§