Trait memory_db::KeyFunction[][src]

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[src]

Loading content...

Required methods

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

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...