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