Trait sp_trie::KeyFunction [−][src]
Various re-exports from the memory-db crate.
Associated Types
Loading content...Required methods
Loading content...Implementations on Foreign Types
impl<H> KeyFunction<H> for LegacyPrefixedKey<H> where
    H: Hasher, [src]
H: Hasher,
type Key = Vec<u8, Global>
pub fn key(
    hash: &<H as Hasher>::Out, 
    prefix: (&[u8], Option<u8>)
) -> Vec<u8, Global>[src]
hash: &<H as Hasher>::Out,
prefix: (&[u8], Option<u8>)
) -> Vec<u8, Global>
impl<H> KeyFunction<H> for PrefixedKey<H> where
    H: Hasher, [src]
H: Hasher,
type Key = Vec<u8, Global>
pub fn key(
    hash: &<H as Hasher>::Out, 
    prefix: (&[u8], Option<u8>)
) -> Vec<u8, Global>[src]
hash: &<H as Hasher>::Out,
prefix: (&[u8], Option<u8>)
) -> Vec<u8, Global>
impl<H> KeyFunction<H> for HashKey<H> where
    H: Hasher, [src]
H: Hasher,
type Key = <H as Hasher>::Out
pub fn key(
    hash: &<H as Hasher>::Out, 
    prefix: (&[u8], Option<u8>)
) -> <H as Hasher>::Out[src]
hash: &<H as Hasher>::Out,
prefix: (&[u8], Option<u8>)
) -> <H as Hasher>::Out