[][src]Struct bm::NoopBackend

pub struct NoopBackend<D: Digest, T: AsRef<[u8]> + Clone + Default>(_, _);

Noop merkle database.

Methods

impl<D: Digest, T: AsRef<[u8]> + Clone + Default> NoopBackend<D, T>[src]

pub fn new_with_unit_empty(value: EndOf<Self>) -> Self[src]

Create an in-memory database with unit empty value.

pub fn new_with_inherited_empty() -> Self[src]

Create an in-memory database with inherited empty value.

Trait Implementations

impl<D: Digest, V: AsRef<[u8]> + Clone + Default> Backend for NoopBackend<D, V>[src]

type Intermediate = GenericArray<u8, D::OutputSize>

Intermediate value stored in this merkle database.

type End = V

End value stored in this merkle database.

type Error = NoopBackendError

Error type for DB access.

impl<D: Clone + Digest, T: Clone + AsRef<[u8]> + Default> Clone for NoopBackend<D, T>[src]

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

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<D, T> Send for NoopBackend<D, T> where
    T: Send,
    <D as Digest>::OutputSize: ArrayLength<u8>, 

impl<D, T> Unpin for NoopBackend<D, T> where
    T: Unpin,
    <<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: Unpin

impl<D, T> Sync for NoopBackend<D, T> where
    T: Sync,
    <D as Digest>::OutputSize: ArrayLength<u8>, 

impl<D, T> UnwindSafe for NoopBackend<D, T> where
    T: RefUnwindSafe + UnwindSafe,
    <<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe + UnwindSafe

impl<D, T> RefUnwindSafe for NoopBackend<D, T> where
    T: RefUnwindSafe,
    <<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe

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