Trait sp_trie::KeyFunction[][src]

pub trait KeyFunction<H> where
    H: Hasher
{ type Key: Clone + Eq + Send + Sync + Hash; pub fn key(
        hash: &<H as Hasher>::Out,
        prefix: (&[u8], Option<u8>)
    ) -> Self::Key; }

Various re-exports from the memory-db crate.

Associated Types

type Key: Clone + Eq + Send + Sync + Hash[src]

Loading content...

Required methods

pub fn key(hash: &<H as Hasher>::Out, prefix: (&[u8], Option<u8>)) -> Self::Key[src]

Loading content...

Implementations on Foreign Types

impl<H> KeyFunction<H> for HashKey<H> where
    H: Hasher
[src]

type Key = <H as Hasher>::Out

impl<H> KeyFunction<H> for PrefixedKey<H> where
    H: Hasher
[src]

type Key = Vec<u8, Global>

impl<H> KeyFunction<H> for LegacyPrefixedKey<H> where
    H: Hasher
[src]

type Key = Vec<u8, Global>

Loading content...

Implementors

Loading content...