Struct trie_db::TrieRootUnhashed[][src]

pub struct TrieRootUnhashed<H> {
    pub root: Option<Vec<u8>>,
    // some fields omitted
}
Expand description

Get the trie root node encoding.

Fields

root: Option<Vec<u8>>

The resulting encoded root.

Trait Implementations

impl<H> Default for TrieRootUnhashed<H>[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl<H: Hasher> ProcessEncodedNode<<H as Hasher>::Out> for TrieRootUnhashed<H>[src]

fn process(
    &mut self,
    _: Prefix<'_>,
    encoded_node: Vec<u8>,
    is_root: bool
) -> ChildReference<<H as Hasher>::Out>
[src]

Function call with prefix, encoded value and a boolean indicating if the node is the root for each node of the trie. Read more

Auto Trait Implementations

impl<H> RefUnwindSafe for TrieRootUnhashed<H> where
    H: RefUnwindSafe

impl<H> Send for TrieRootUnhashed<H> where
    H: Send

impl<H> Sync for TrieRootUnhashed<H> where
    H: Sync

impl<H> Unpin for TrieRootUnhashed<H> where
    H: Unpin

impl<H> UnwindSafe for TrieRootUnhashed<H> where
    H: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

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]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.