Trait sov_rollup_interface::db::SeekKeyEncoder
source · pub trait SeekKeyEncoder<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§
sourcefn encode_seek_key(&self) -> Result<Vec<u8>>
fn encode_seek_key(&self) -> Result<Vec<u8>>
Converts self
to bytes which is used to seek the underlying raw iterator.
Implementors§
impl<S, K> SeekKeyEncoder<S> for Kwhere S: Schema, K: KeyEncoder<S>,
All keys can automatically be used as seek keys.