pub trait RustIteratorBuilder:
Send
+ Sync
+ 'static {
type Iterable: Send + Sync;
type Direction: HummockIteratorDirection;
type RewindIter<'a>: Iterator<Item = (TableKey<&'a [u8]>, HummockValue<&'a [u8]>)> + Send + Sync + 'a;
type SeekIter<'a>: Iterator<Item = (TableKey<&'a [u8]>, HummockValue<&'a [u8]>)> + Send + Sync + 'a;
// Required methods
fn seek<'a>(
iterable: &'a Self::Iterable,
seek_key: TableKey<&[u8]>,
) -> Self::SeekIter<'a>;
fn rewind(iterable: &Self::Iterable) -> Self::RewindIter<'_>;
}
Required Associated Types§
type Iterable: Send + Sync
type Direction: HummockIteratorDirection
type RewindIter<'a>: Iterator<Item = (TableKey<&'a [u8]>, HummockValue<&'a [u8]>)> + Send + Sync + 'a
type SeekIter<'a>: Iterator<Item = (TableKey<&'a [u8]>, HummockValue<&'a [u8]>)> + Send + Sync + 'a
Required Methods§
fn seek<'a>( iterable: &'a Self::Iterable, seek_key: TableKey<&[u8]>, ) -> Self::SeekIter<'a>
fn rewind(iterable: &Self::Iterable) -> Self::RewindIter<'_>
Object Safety§
This trait is not object safe.