[−][src]Struct bm::InMemoryBackend
In-memory merkle database.
Methods
impl<C: Construct> InMemoryBackend<C> where
C::Value: Eq + Hash + Ord,
[src]
C::Value: Eq + Hash + Ord,
pub fn populate(&mut self, proofs: Map<C::Value, (C::Value, C::Value)>)
[src]
Populate the database with proofs.
Trait Implementations
impl<C: Construct> Backend for InMemoryBackend<C>
[src]
type Construct = C
Construct of the backend.
type Error = InMemoryBackendError
Error type for DB access.
impl<C: Construct> ReadBackend for InMemoryBackend<C> where
C::Value: Eq + Hash + Ord,
[src]
C::Value: Eq + Hash + Ord,
impl<C: Construct> WriteBackend for InMemoryBackend<C> where
C::Value: Eq + Hash + Ord,
[src]
C::Value: Eq + Hash + Ord,
fn rootify(&mut self, key: &C::Value) -> Result<(), Self::Error>
[src]
fn unrootify(&mut self, key: &C::Value) -> Result<(), Self::Error>
[src]
fn insert(
&mut self,
key: C::Value,
value: (C::Value, C::Value)
) -> Result<(), Self::Error>
[src]
&mut self,
key: C::Value,
value: (C::Value, C::Value)
) -> Result<(), Self::Error>
impl<C: Construct> Clone for InMemoryBackend<C>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<C: Construct> AsRef<HashMap<<C as Construct>::Value, (Option<(<C as Construct>::Value, <C as Construct>::Value)>, Option<usize>), RandomState>> for InMemoryBackend<C>
[src]
impl<C: Construct> Default for InMemoryBackend<C> where
C::Value: Eq + Hash + Ord,
[src]
C::Value: Eq + Hash + Ord,
Auto Trait Implementations
impl<C> Sync for InMemoryBackend<C> where
<C as Construct>::Value: Sync,
<C as Construct>::Value: Sync,
impl<C> Send for InMemoryBackend<C> where
<C as Construct>::Value: Send,
<C as Construct>::Value: Send,
impl<C> Unpin for InMemoryBackend<C> where
<C as Construct>::Value: Unpin,
<C as Construct>::Value: Unpin,
impl<C> RefUnwindSafe for InMemoryBackend<C> where
<C as Construct>::Value: RefUnwindSafe,
<C as Construct>::Value: RefUnwindSafe,
impl<C> UnwindSafe for InMemoryBackend<C> where
<C as Construct>::Value: UnwindSafe,
<C as Construct>::Value: UnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self