[−][src]Struct reference_trie::ExtensionLayout
Trie layout using extension nodes.
Trait Implementations
impl TrieConfiguration for ExtensionLayout
[src]
fn trie_build<DB, I, A, B>(db: &mut DB, input: I) -> <Self::Hash as Hasher>::Out where
A: AsRef<[u8]> + Ord,
B: AsRef<[u8]>,
DB: HashDB<Self::Hash, usize>,
I: IntoIterator<Item = (A, B)>,
[src]
A: AsRef<[u8]> + Ord,
B: AsRef<[u8]>,
DB: HashDB<Self::Hash, usize>,
I: IntoIterator<Item = (A, B)>,
fn trie_root<I, A, B>(input: I) -> <Self::Hash as Hasher>::Out where
A: AsRef<[u8]> + Ord,
B: AsRef<[u8]>,
I: IntoIterator<Item = (A, B)>,
[src]
A: AsRef<[u8]> + Ord,
B: AsRef<[u8]>,
I: IntoIterator<Item = (A, B)>,
fn trie_root_unhashed<I, A, B>(input: I) -> Vec<u8> where
A: AsRef<[u8]> + Ord,
B: AsRef<[u8]>,
I: IntoIterator<Item = (A, B)>,
[src]
A: AsRef<[u8]> + Ord,
B: AsRef<[u8]>,
I: IntoIterator<Item = (A, B)>,
fn encode_index(input: u32) -> Vec<u8>
[src]
fn ordered_trie_root<I, A>(input: I) -> <Self::Hash as Hasher>::Out where
A: AsRef<[u8]>,
I: IntoIterator<Item = A>,
[src]
A: AsRef<[u8]>,
I: IntoIterator<Item = A>,
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,
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.
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>,