[][src]Struct bm_le::InMemoryBackend

pub struct InMemoryBackend<C>(_)
where
    C: Construct
;

In-memory merkle database.

Methods

impl<C> InMemoryBackend<C> where
    C: Construct,
    <C as Construct>::Intermediate: Eq,
    <C as Construct>::Intermediate: Hash,
    <C as Construct>::Intermediate: Ord
[src]

pub fn populate(
    &mut self,
    proofs: HashMap<<C as Construct>::Intermediate, (Value<<C as Construct>::Intermediate, <C as Construct>::End>, Value<<C as Construct>::Intermediate, <C as Construct>::End>), RandomState>
)
[src]

Populate the database with proofs.

Trait Implementations

impl<C> AsRef<HashMap<<C as Construct>::Intermediate, ((Value<<C as Construct>::Intermediate, <C as Construct>::End>, Value<<C as Construct>::Intermediate, <C as Construct>::End>), Option<usize>), RandomState>> for InMemoryBackend<C> where
    C: Construct
[src]

impl<C> ReadBackend for InMemoryBackend<C> where
    C: Construct,
    <C as Construct>::Intermediate: Eq,
    <C as Construct>::Intermediate: Hash,
    <C as Construct>::Intermediate: Ord
[src]

impl<C> Backend for InMemoryBackend<C> where
    C: Construct
[src]

type Construct = C

Construct of the backend.

type Error = InMemoryBackendError

Error type for DB access.

impl<C> Default for InMemoryBackend<C> where
    C: Construct,
    <C as Construct>::Intermediate: Eq,
    <C as Construct>::Intermediate: Hash,
    <C as Construct>::Intermediate: Ord
[src]

impl<C> WriteBackend for InMemoryBackend<C> where
    C: Construct,
    <C as Construct>::Intermediate: Eq,
    <C as Construct>::Intermediate: Hash,
    <C as Construct>::Intermediate: Ord
[src]

impl<C> Clone for InMemoryBackend<C> where
    C: Construct
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<C> Sync for InMemoryBackend<C> where
    <C as Construct>::End: Sync,
    <C as Construct>::Intermediate: Sync

impl<C> Send for InMemoryBackend<C> where
    <C as Construct>::End: Send,
    <C as Construct>::Intermediate: Send

impl<C> Unpin for InMemoryBackend<C> where
    <C as Construct>::End: Unpin,
    <C as Construct>::Intermediate: Unpin

impl<C> RefUnwindSafe for InMemoryBackend<C> where
    <C as Construct>::End: RefUnwindSafe,
    <C as Construct>::Intermediate: RefUnwindSafe

impl<C> UnwindSafe for InMemoryBackend<C> where
    <C as Construct>::End: UnwindSafe,
    <C as Construct>::Intermediate: UnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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