pub fn read_trie_value<H: Hasher, DB: hash_db::HashDBRef<H, trie_db::DBValue>>(
	db: &DB,
	root: &H::Out,
	key: &[u8]
) -> Result<Option<Vec<u8>>, Box<TrieError<H::Out>>> {
	Ok(TrieDB::<H>::new(&*db, root)?.get(key).map(|x| x.map(|val| val.to_vec()))?)
}
/// Read a value from the trie.
Read a value from the trie.
Read a value from the trie .
pub fn read_trie_value<H: Hasher, DB: hash_db::HashDBRef<H, trie_db::DBValue>>(
	db: &DB,
	root: &H::Out,
	key: &[u8]
) -> Result<Option<Vec<u8>>, Box<TrieError<H::Out>>> {
	Ok(TrieDB::<H>::new(&*db, root)?.get(key).map(|x| x.map(|val| val.to_vec()))?)
}
pub fn read_trie_value < H : Hasher , DB : hash_db :: HashDBRef < H , trie_db :: DBValue > > ( db : & DB , root : & H :: Out , key : & [ u8 ] ) -> Result < Option < Vec < u8 > > , Box < TrieError < H :: Out > > > { Ok ( TrieDB :: < H > :: new ( & * db , root ) ? . get ( key ) . map ( | x | x . map ( | val | val . to_vec ( ) ) ) ? ) }
Read a value from the trie.
Read a value from the trie .
db
&DB
root
&H::Out
key
&[u8]
db
&DB
root
&H::Out
key
&[u8]