pub trait KeyEncoder<S: Schema + ?Sized>: Sized + PartialEq + Debug {
    // Required method
    fn encode_key(&self) -> Result<Vec<u8>>;
}
Expand description

Implementors of this trait can be used to encode keys in the given Schema.

Required Methods§

source

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

Converts self to bytes to be stored in RocksDB.

Implementors§