[][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>::Value: Eq,
    <C as Construct>::Value: Hash,
    <C as Construct>::Value: Ord
[src]

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

Populate the database with proofs.

Trait Implementations

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

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

impl<C> ReadBackend for InMemoryBackend<C> where
    C: Construct,
    <C as Construct>::Value: Eq,
    <C as Construct>::Value: Hash,
    <C as Construct>::Value: 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

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> WriteBackend for InMemoryBackend<C> where
    C: Construct,
    <C as Construct>::Value: Eq,
    <C as Construct>::Value: Hash,
    <C as Construct>::Value: Ord
[src]

Auto Trait Implementations

impl<C> Sync for InMemoryBackend<C> where
    <C as Construct>::Value: Sync

impl<C> Send for InMemoryBackend<C> where
    <C as Construct>::Value: Send

impl<C> Unpin for InMemoryBackend<C> where
    <C as Construct>::Value: Unpin

impl<C> RefUnwindSafe for InMemoryBackend<C> where
    <C as Construct>::Value: RefUnwindSafe

impl<C> UnwindSafe for InMemoryBackend<C> where
    <C as Construct>::Value: 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