Trait litemap::store::StoreIntoIterator

source ·
pub trait StoreIntoIterator<K, V>: StoreMut<K, V> {
    type KeyValueIntoIter: Iterator<Item = (K, V)>;

    // Required method
    fn lm_into_iter(self) -> Self::KeyValueIntoIter;

    // Provided methods
    fn lm_extend_end(&mut self, other: Self)
       where Self: Sized { ... }
    fn lm_extend_start(&mut self, other: Self)
       where Self: Sized { ... }
}

Required Associated Types§

Required Methods§

source

fn lm_into_iter(self) -> Self::KeyValueIntoIter

Returns an iterator that moves every item from this store.

Provided Methods§

source

fn lm_extend_end(&mut self, other: Self)
where Self: Sized,

Adds items from another store to the end of this store.

source

fn lm_extend_start(&mut self, other: Self)
where Self: Sized,

Adds items from another store to the beginning of this store.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<K, V> StoreIntoIterator<K, V> for Vec<(K, V)>

§

type KeyValueIntoIter = IntoIter<(K, V)>

source§

fn lm_into_iter(self) -> Self::KeyValueIntoIter

source§

fn lm_extend_end(&mut self, other: Self)

source§

fn lm_extend_start(&mut self, other: Self)

Implementors§