Trait linera_views::store::KeyIterable

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

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

How to iterate over the keys returned by a search query.

Required Associated Types§

source

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

The iterator returning keys by reference.

Required Methods§

source

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

Iterates keys by reference.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<E> KeyIterable<E> for Vec<Vec<u8>>

§

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

source§

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

Implementors§

source§

impl KeyIterable<DynamoDbStoreInternalError> for DynamoDbKeys

§

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

source§

impl<E1, E2, K1, K2> KeyIterable<DualStoreError<E1, E2>> for DualStoreKeys<K1, K2>
where K1: KeyIterable<E1>, K2: KeyIterable<E2>,

§

type Iterator<'a> = DualStoreKeyIterator<<K1 as KeyIterable<E1>>::Iterator<'a>, <K2 as KeyIterable<E2>>::Iterator<'a>> where K1: 'a, K2: 'a