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 LegacyPrefixedKey<H>
type Key = Vec<u8>
fn key(hash: &H::Out, prefix: Prefix<'_>) -> Vec<u8>
impl<H: KeyHasher> KeyFunction<H> for PrefixedKey<H>