[][src]Struct bm::MerkleEmpty

pub struct MerkleEmpty<R: RootStatus, DB: MerkleDB> { /* fields omitted */ }

Merkle structure storing hashes of empty roots.

Methods

impl<R: RootStatus, DB: MerkleDB> MerkleEmpty<R, DB>[src]

pub fn extend(&mut self, db: &mut DB) -> Result<(), Error<DB::Error>>[src]

Extend the current empty structure with a new depth.

pub fn shrink(&mut self, db: &mut DB) -> Result<(), Error<DB::Error>>[src]

Shrink the current empty structure.

pub fn root(&self) -> ValueOf<DB>[src]

Root of the current depth.

pub fn drop(self, db: &mut DB) -> Result<(), Error<DB::Error>>[src]

Drop the merkle tree.

Trait Implementations

impl<R: RootStatus, DB: MerkleDB> Default for MerkleEmpty<R, DB>[src]

Auto Trait Implementations

impl<R, DB> Sync for MerkleEmpty<R, DB> where
    R: Sync,
    <DB as MerkleDB>::Digest: Digest,
    <DB as MerkleDB>::End: Sync,
    <<DB as MerkleDB>::Digest as Digest>::OutputSize: ArrayLength<u8>, 

impl<R, DB> Unpin for MerkleEmpty<R, DB> where
    R: Unpin,
    <<<DB as MerkleDB>::Digest as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: Unpin,
    <DB as MerkleDB>::Digest: Digest,
    <DB as MerkleDB>::End: Unpin

impl<R, DB> Send for MerkleEmpty<R, DB> where
    R: Send,
    <DB as MerkleDB>::Digest: Digest,
    <DB as MerkleDB>::End: Send,
    <<DB as MerkleDB>::Digest as Digest>::OutputSize: ArrayLength<u8>, 

impl<R, DB> UnwindSafe for MerkleEmpty<R, DB> where
    R: UnwindSafe,
    <<<DB as MerkleDB>::Digest as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
    <DB as MerkleDB>::Digest: Digest,
    <DB as MerkleDB>::End: UnwindSafe

impl<R, DB> RefUnwindSafe for MerkleEmpty<R, DB> where
    R: RefUnwindSafe,
    <<<DB as MerkleDB>::Digest as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
    <DB as MerkleDB>::Digest: Digest,
    <DB as MerkleDB>::End: RefUnwindSafe

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

type Output = T

Should always be Self