[][src]Struct bm::Raw

pub struct Raw<R: RootStatus, C: Construct> { /* fields omitted */ }

Raw merkle tree.

Methods

impl<R: RootStatus, C: Construct> Raw<R, C>[src]

pub fn subtree<DB: ReadBackend<Construct = C> + ?Sized>(
    &self,
    db: &mut DB,
    index: Index
) -> Result<DanglingRaw<C>, Error<DB::Error>>
[src]

Return a reference to a subtree.

pub fn get<DB: ReadBackend<Construct = C> + ?Sized>(
    &self,
    db: &mut DB,
    index: Index
) -> Result<Option<C::Value>, Error<DB::Error>>
[src]

Get value from the tree via generalized merkle index.

pub fn set<DB: WriteBackend<Construct = C> + ?Sized>(
    &mut self,
    db: &mut DB,
    index: Index,
    set: C::Value
) -> Result<(), Error<DB::Error>>
[src]

Set value of the merkle tree via generalized merkle index.

Trait Implementations

impl<R: RootStatus, C: Construct> Tree for Raw<R, C>[src]

type RootStatus = R

Root status of the tree.

type Construct = C

Construct of the tree.

impl<R: RootStatus, C: Construct> Leak for Raw<R, C>[src]

type Metadata = C::Value

Metadata to represent this merkle struct.

impl<R: RootStatus, C: Construct> Default for Raw<R, C>[src]

Auto Trait Implementations

impl<R, C> Sync for Raw<R, C> where
    C: Sync,
    R: Sync,
    <C as Construct>::Value: Sync

impl<R, C> Send for Raw<R, C> where
    C: Send,
    R: Send,
    <C as Construct>::Value: Send

impl<R, C> Unpin for Raw<R, C> where
    C: Unpin,
    R: Unpin,
    <C as Construct>::Value: Unpin

impl<R, C> RefUnwindSafe for Raw<R, C> where
    C: RefUnwindSafe,
    R: RefUnwindSafe,
    <C as Construct>::Value: RefUnwindSafe

impl<R, C> UnwindSafe for Raw<R, C> where
    C: UnwindSafe,
    R: UnwindSafe,
    <C as Construct>::Value: UnwindSafe

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