[][src]Struct executor_types::ExecutedTrees

pub struct ExecutedTrees { /* fields omitted */ }

A wrapper of the in-memory state sparse merkle tree and the transaction accumulator that represent a specific state collectively. Usually it is a state after executing a block.


impl ExecutedTrees[src]

pub fn new_copy(
    state_tree: Arc<SparseMerkleTree>,
    transaction_accumulator: Arc<InMemoryAccumulator<TransactionAccumulatorHasher>>
) -> Self

pub fn state_tree(&self) -> &Arc<SparseMerkleTree>[src]

pub fn txn_accumulator(
) -> &Arc<InMemoryAccumulator<TransactionAccumulatorHasher>>

pub fn version(&self) -> Option<Version>[src]

pub fn state_id(&self) -> HashValue[src]

pub fn state_root(&self) -> HashValue[src]

pub fn new(
    state_root_hash: HashValue,
    frozen_subtrees_in_accumulator: Vec<HashValue>,
    num_leaves_in_accumulator: u64
) -> ExecutedTrees

pub fn new_empty() -> ExecutedTrees[src]

Trait Implementations

impl Clone for ExecutedTrees[src]

impl Debug for ExecutedTrees[src]

impl From<TreeState> for ExecutedTrees[src]

Auto Trait Implementations

impl RefUnwindSafe for ExecutedTrees

impl Send for ExecutedTrees

impl Sync for ExecutedTrees

impl Unpin for ExecutedTrees

impl UnwindSafe for ExecutedTrees

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,