[−][src]Struct reference_trie::ExtensionLayout
Trie layout using extension nodes.
Trait Implementations
impl TrieLayout for ExtensionLayout[src]
const USE_EXTENSION: bool[src]
type Hash = KeccakHasher
Hasher to use for this trie.
type Codec = ReferenceNodeCodec
Codec to use (needs to match hasher and nibble ops).
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>,
Auto Trait Implementations
impl Send for ExtensionLayout
impl Sync for ExtensionLayout
impl Unpin for ExtensionLayout
impl UnwindSafe for ExtensionLayout
impl RefUnwindSafe for ExtensionLayout
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,