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§
Required Methods§
Sourcefn into_iterator_owned(self) -> Self::IteratorOwned
fn into_iterator_owned(self) -> Self::IteratorOwned
Iterates keys and values by value.
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.