pub fn ordered_trie_root_with_encoder<T, F>(items: &[T], encode: F) -> B256where F: FnMut(&T, &mut Vec<u8>),
Compute a trie root of the collection of items with a custom encoder.