Trait KeyFunction
memory_db
pub trait KeyFunction<H: KeyHasher> { type Key: Send + Sync + Clone + Hash + Eq; fn key(hash: &H::Out, prefix: &[u8]) -> Self::Key; }
type Key: Send + Sync + Clone + Hash + Eq
fn key(hash: &H::Out, prefix: &[u8]) -> Self::Key
impl<H: KeyHasher> KeyFunction<H> for HashKey<H>
type Key = H::Out
fn key(hash: &H::Out, prefix: &[u8]) -> H::Out
impl<H: KeyHasher> KeyFunction<H> for PrefixedKey<H>
type Key = Vec<u8>
fn key(hash: &H::Out, prefix: &[u8]) -> Vec<u8>