Trait linera_views::store::KeyValueIterable

source ·
pub trait KeyValueIterable<Error> {
    type Iterator<'a>: Iterator<Item = Result<(&'a [u8], &'a [u8]), Error>>
       where Self: 'a;
    type IteratorOwned: Iterator<Item = Result<(Vec<u8>, Vec<u8>), Error>>;

    // Required methods
    fn iterator(&self) -> Self::Iterator<'_>;
    fn into_iterator_owned(self) -> Self::IteratorOwned;
}
Expand description

How to iterate over the key-value pairs returned by a search query.

Required Associated Types§

source

type Iterator<'a>: Iterator<Item = Result<(&'a [u8], &'a [u8]), Error>> where Self: 'a

The iterator that returns key-value pairs by reference.

source

type IteratorOwned: Iterator<Item = Result<(Vec<u8>, Vec<u8>), Error>>

The iterator that returns key-value pairs by value.

Required Methods§

source

fn iterator(&self) -> Self::Iterator<'_>

Iterates keys and values by reference.

source

fn into_iterator_owned(self) -> Self::IteratorOwned

Iterates keys and values by value.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<E> KeyValueIterable<E> for Vec<(Vec<u8>, Vec<u8>)>

§

type Iterator<'a> = SimpleKeyValueIterator<'a, E>

§

type IteratorOwned = SimpleKeyValueIteratorOwned<E>

source§

fn iterator(&self) -> Self::Iterator<'_>

source§

fn into_iterator_owned(self) -> Self::IteratorOwned

Implementors§

source§

impl KeyValueIterable<DynamoDbStoreInternalError> for DynamoDbKeyValues

§

type Iterator<'a> = DynamoDbKeyValueIterator<'a> where Self: 'a

§

type IteratorOwned = DynamoDbKeyValueIteratorOwned

source§

impl<E1, E2, K1, K2> KeyValueIterable<DualStoreError<E1, E2>> for DualStoreKeyValues<K1, K2>
where K1: KeyValueIterable<E1>, K2: KeyValueIterable<E2>,