[][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.

Implementations

impl ExecutedTrees[src]

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

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

pub fn txn_accumulator(
    &self
) -> &Arc<InMemoryAccumulator<TransactionAccumulatorHasher>>
[src]

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
[src]

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
[src]

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

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

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

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

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
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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.

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