Trait matterdb::indexes::IndexIterator[][src]

pub trait IndexIterator {
    type Key: BinaryKey + ?Sized;
    type Value: BinaryValue;
    fn index_iter(
        &self,
        from: Option<&Self::Key>
    ) -> Entries<'_, Self::Key, Self::Value>

Notable traits for Entries<'_, K, V>

impl<K: ?Sized, V> Iterator for Entries<'_, K, V> where
    K: BinaryKey,
    V: BinaryValue
type Item = (K::Owned, V);
; }

Database object that supports iteration and continuing iteration from an intermediate position.

This trait is implemented for all index collections (i.e., all index types except for Entry) and can thus be used by the generic iteration routines.

Associated Types

type Key: BinaryKey + ?Sized[src]

Type encompassing index keys.

type Value: BinaryValue[src]

Type encompassing index values.

Loading content...

Required methods

fn index_iter(
    &self,
    from: Option<&Self::Key>
) -> Entries<'_, Self::Key, Self::Value>

Notable traits for Entries<'_, K, V>

impl<K: ?Sized, V> Iterator for Entries<'_, K, V> where
    K: BinaryKey,
    V: BinaryValue
type Item = (K::Owned, V);
[src]

Continues iteration from the specified position. If from is None, starts the iteration from scratch.

Loading content...

Implementors

impl<T, K: ?Sized> IndexIterator for KeySetIndex<T, K> where
    T: RawAccess,
    K: BinaryKey
[src]

type Key = K

type Value = ()

impl<T, K: ?Sized, V> IndexIterator for MapIndex<T, K, V> where
    T: RawAccess,
    K: BinaryKey,
    V: BinaryValue
[src]

type Key = K

type Value = V

impl<T, V> IndexIterator for ListIndex<T, V> where
    T: RawAccess,
    V: BinaryValue
[src]

type Key = u64

type Value = V

impl<T, V> IndexIterator for SparseListIndex<T, V> where
    T: RawAccess,
    V: BinaryValue
[src]

type Key = u64

type Value = V

Loading content...