Struct trie_db::TrieRootUnhashed
source · [−]pub struct TrieRootUnhashed<T: TrieLayout> {
pub root: Option<Vec<u8>>,
/* private fields */
}
Expand description
Get the trie root node encoding.
Fields
root: Option<Vec<u8>>
The resulting encoded root.
Trait Implementations
sourceimpl<T: TrieLayout> Default for TrieRootUnhashed<T>
impl<T: TrieLayout> Default for TrieRootUnhashed<T>
sourceimpl<T: TrieLayout> ProcessEncodedNode<<<T as TrieLayout>::Hash as Hasher>::Out> for TrieRootUnhashed<T>
impl<T: TrieLayout> ProcessEncodedNode<<<T as TrieLayout>::Hash as Hasher>::Out> for TrieRootUnhashed<T>
sourcefn process(
&mut self,
_: Prefix<'_>,
encoded_node: Vec<u8>,
is_root: bool
) -> ChildReference<<T::Hash as Hasher>::Out>
fn process(
&mut self,
_: Prefix<'_>,
encoded_node: Vec<u8>,
is_root: bool
) -> ChildReference<<T::Hash as Hasher>::Out>
Function call with prefix, encoded value and a boolean indicating if the node is the root for each node of the trie. Read more
sourcefn process_inner_hashed_value(
&mut self,
_prefix: Prefix<'_>,
value: &[u8]
) -> TrieHash<T>
fn process_inner_hashed_value(
&mut self,
_prefix: Prefix<'_>,
value: &[u8]
) -> TrieHash<T>
Callback for hashed value in encoded node.
Auto Trait Implementations
impl<T> RefUnwindSafe for TrieRootUnhashed<T> where
T: RefUnwindSafe,
impl<T> Send for TrieRootUnhashed<T> where
T: Send,
impl<T> Sync for TrieRootUnhashed<T> where
T: Sync,
impl<T> Unpin for TrieRootUnhashed<T> where
T: Unpin,
impl<T> UnwindSafe for TrieRootUnhashed<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more