memory_db

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§