Trait memory_db::KeyFunction

source ·
pub trait KeyFunction<H: KeyHasher> {
    type Key: Send + Sync + Clone + Hash + Eq + MaybeDebug + Ord;

    // Required method
    fn key(hash: &H::Out, prefix: Prefix<'_>) -> Self::Key;
}

Required Associated Types§

Required Methods§

source

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

Object Safety§

This trait is not object safe.

Implementors§