Trait sp_trie::KeyFunction [−]
pub trait KeyFunction<H> where
H: Hasher, { type Key: Send + Sync + Clone + Hash + Eq; fn key(hash: &<H as Hasher>::Out, prefix: (&[u8], Option<u8>)) -> Self::Key; }
Expand description
Various re-exports from the memory-db
crate.
Associated Types
Required methods
Implementations on Foreign Types
impl<H> KeyFunction<H> for PrefixedKey<H> where
H: Hasher,
impl<H> KeyFunction<H> for PrefixedKey<H> where
H: Hasher,
impl<H> KeyFunction<H> for HashKey<H> where
H: Hasher,
impl<H> KeyFunction<H> for HashKey<H> where
H: Hasher,
impl<H> KeyFunction<H> for LegacyPrefixedKey<H> where
H: Hasher,
impl<H> KeyFunction<H> for LegacyPrefixedKey<H> where
H: Hasher,