SeekableLendingIterator

Trait SeekableLendingIterator 

Source
pub trait SeekableLendingIterator<Key, Cmp>: CursorLendingIterator + Seekable<Key, Cmp>
where Key: ?Sized, Cmp: ?Sized + Comparator<Key>,
{ }
Expand description

A lending iterator with cursor methods from CursorLendingIterator and the ability to seek from Seekable.

As a lending iterator, only one entry can be accessed at a time.

See CursorLendingIterator for more.

All implementations are automatically provided by a blanket impl.

§Note

Types which implement SeekableLendingIterator should strongly consider implementing ItemToKey as well.

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.

Implementors§

Source§

impl<Key, Cmp, I> SeekableLendingIterator<Key, Cmp> for I
where Key: ?Sized, Cmp: ?Sized + Comparator<Key>, I: CursorLendingIterator + Seekable<Key, Cmp>,