pub fn ordered_trie_root<H: Hasher, I, A>(input: I) -> H::Out
where
	I: IntoIterator<Item = A>,
	A: AsRef<[u8]>,
{
	trie_root::<H, _, _, _>(input
		.into_iter()
		.enumerate()
		.map(|(i, v)| (codec::Encode::encode(&codec::Compact(i as u32)), v))
	)
}
/// A trie root formed from the items, with keys attached according to their
/// compact-encoded index (using `parity-codec` crate).
A trie root formed from the items, with keys attached according to their
compact-encoded index (using `parity-codec` crate).
A trie root formed from the items with keys attached according to their compact - encoded index ( using ` parity - codec ` crate ) .
pub fn ordered_trie_root<H: Hasher, I, A>(input: I) -> H::Out
where
	I: IntoIterator<Item = A>,
	A: AsRef<[u8]>,
{
	trie_root::<H, _, _, _>(input
		.into_iter()
		.enumerate()
		.map(|(i, v)| (codec::Encode::encode(&codec::Compact(i as u32)), v))
	)
}
pub fn ordered_trie_root < H : Hasher , I , A > ( input : I ) -> H :: Out where I : IntoIterator < Item = A > , A : AsRef < [ u8 ] > , { trie_root :: < H , _ , _ , _ > ( input . into_iter ( ) . enumerate ( ) . map ( | ( i , v ) | ( codec :: Encode :: encode ( & codec :: Compact ( i as u32 ) ) , v ) ) ) }
A trie root formed from the items, with keys attached according to their
compact-encoded index (using `parity-codec` crate).
A trie root formed from the items with keys attached according to their compact - encoded index ( using ` parity - codec ` crate ) .
input
I
input
I