Trait SeekKeyCodec

Source
pub trait SeekKeyCodec<S: Schema + ?Sized>: Sized {
    // Required method
    fn encode_seek_key(&self) -> Result<Vec<u8>>;
}
Expand description

This defines a type that can be used to seek a SchemaIterator, via interfaces like seek.

Required Methods§

Source

fn encode_seek_key(&self) -> Result<Vec<u8>>

Converts self to bytes which is used to seek the underlying raw iterator.

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<S, K> SeekKeyCodec<S> for K
where S: Schema, K: KeyCodec<S>,

All keys can automatically be used as seek keys.