Trait sov_rollup_interface::db::KeyDecoder
source · pub trait KeyDecoder<S: Schema + ?Sized>: Sized + PartialEq + Debug {
// Required method
fn decode_key(data: &[u8]) -> Result<Self>;
}
Required Methods§
sourcefn decode_key(data: &[u8]) -> Result<Self>
fn decode_key(data: &[u8]) -> Result<Self>
Converts bytes fetched from DB to Self
.