[][src]Trait memory_db::KeyFunction

pub trait KeyFunction<H: KeyHasher> {
    type Key: Send + Sync + Clone + Hash + Eq;
    fn key(hash: &H::Out, prefix: Prefix<'_>) -> Self::Key;
}

Associated Types

type Key: Send + Sync + Clone + Hash + Eq

Loading content...

Required methods

fn key(hash: &H::Out, prefix: Prefix<'_>) -> Self::Key

Loading content...

Implementors

impl<H: KeyHasher> KeyFunction<H> for HashKey<H>[src]

type Key = H::Out

impl<H: KeyHasher> KeyFunction<H> for LegacyPrefixedKey<H>[src]

type Key = Vec<u8>

impl<H: KeyHasher> KeyFunction<H> for PrefixedKey<H>[src]

type Key = Vec<u8>

Loading content...