[][src]Struct bm::Raw

pub struct Raw<R: RootStatus, DB: Backend> { /* fields omitted */ }

Raw merkle tree.

Methods

impl<R: RootStatus, DB: Backend> Raw<R, DB>[src]

pub fn subtree(
    &self,
    db: &DB,
    index: Index
) -> Result<DanglingRaw<DB>, Error<DB::Error>>
[src]

Return a reference to a subtree.

pub fn get(
    &self,
    db: &DB,
    index: Index
) -> Result<Option<ValueOf<DB>>, Error<DB::Error>>
[src]

Get value from the tree via generalized merkle index.

pub fn set(
    &mut self,
    db: &mut DB,
    index: Index,
    set: ValueOf<DB>
) -> Result<(), Error<DB::Error>>
[src]

Set value of the merkle tree via generalized merkle index.

Trait Implementations

impl<R: RootStatus, DB: Backend> Tree for Raw<R, DB>[src]

type RootStatus = R

Root status of the tree.

type Backend = DB

Backend of the tree.

impl<R: RootStatus, DB: Backend> Leak for Raw<R, DB>[src]

type Metadata = ValueOf<DB>

Metadata to represent this merkle struct.

impl<R: RootStatus, DB: Backend> Default for Raw<R, DB>[src]

Auto Trait Implementations

impl<R, DB> Send for Raw<R, DB> where
    R: Send,
    <DB as Backend>::End: Send,
    <DB as Backend>::Intermediate: Send

impl<R, DB> Unpin for Raw<R, DB> where
    R: Unpin,
    <DB as Backend>::End: Unpin,
    <DB as Backend>::Intermediate: Unpin

impl<R, DB> Sync for Raw<R, DB> where
    R: Sync,
    <DB as Backend>::End: Sync,
    <DB as Backend>::Intermediate: Sync

impl<R, DB> UnwindSafe for Raw<R, DB> where
    R: UnwindSafe,
    <DB as Backend>::End: UnwindSafe,
    <DB as Backend>::Intermediate: UnwindSafe

impl<R, DB> RefUnwindSafe for Raw<R, DB> where
    R: RefUnwindSafe,
    <DB as Backend>::End: RefUnwindSafe,
    <DB as Backend>::Intermediate: RefUnwindSafe

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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