Struct tetsy_reference_trie::ExtensionLayout [−][src]
Trie layout using extension nodes.
Trait Implementations
impl TrieConfiguration for ExtensionLayout
[src]
pub fn trie_build<DB, I, A, B>(
db: &mut DB,
input: I
) -> <Self::Hash as Hasher>::Out where
I: IntoIterator<Item = (A, B)>,
A: AsRef<[u8]> + Ord,
B: AsRef<[u8]>,
DB: HashDB<Self::Hash, usize>,
[src]
db: &mut DB,
input: I
) -> <Self::Hash as Hasher>::Out where
I: IntoIterator<Item = (A, B)>,
A: AsRef<[u8]> + Ord,
B: AsRef<[u8]>,
DB: HashDB<Self::Hash, usize>,
pub fn tetsy_trie_root<I, A, B>(input: I) -> <Self::Hash as Hasher>::Out where
I: IntoIterator<Item = (A, B)>,
A: AsRef<[u8]> + Ord,
B: AsRef<[u8]>,
[src]
I: IntoIterator<Item = (A, B)>,
A: AsRef<[u8]> + Ord,
B: AsRef<[u8]>,
pub fn tetsy_trie_root_unhashed<I, A, B>(input: I) -> Vec<u8, Global> where
I: IntoIterator<Item = (A, B)>,
A: AsRef<[u8]> + Ord,
B: AsRef<[u8]>,
[src]
I: IntoIterator<Item = (A, B)>,
A: AsRef<[u8]> + Ord,
B: AsRef<[u8]>,
pub fn encode_index(input: u32) -> Vec<u8, Global>
[src]
pub fn ordered_tetsy_trie_root<I, A>(input: I) -> <Self::Hash as Hasher>::Out where
I: IntoIterator<Item = A>,
A: AsRef<[u8]>,
[src]
I: IntoIterator<Item = A>,
A: AsRef<[u8]>,
impl TrieLayout for ExtensionLayout
[src]
const USE_EXTENSION: bool
[src]
const ALLOW_EMPTY: bool
[src]
type Hash = KeccakHasher
Hasher to use for this trie.
type Codec = ReferenceNodeCodec<KeccakHasher>
Codec to use (needs to match hasher and nibble ops).
Auto Trait Implementations
impl RefUnwindSafe for ExtensionLayout
impl Send for ExtensionLayout
impl Sync for ExtensionLayout
impl Unpin for ExtensionLayout
impl UnwindSafe for ExtensionLayout
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,