pub trait KeyDecoder<S: Schema + ?Sized>: Sized + PartialEq + Debug {
    // Required method
    fn decode_key(data: &[u8]) -> Result<Self>;
}

Required Methods§

source

fn decode_key(data: &[u8]) -> Result<Self>

Converts bytes fetched from DB to Self.

Implementors§