linera_views::store

Trait 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.

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<E> KeyIterable<E> for Vec<Vec<u8>>

Source§

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

Source§

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

Implementors§

Source§

impl KeyIterable<DynamoDbStoreInternalError> for DynamoDbKeys

Source§

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>,

Source§

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