[][src]Struct bm::ProvingBackend

pub struct ProvingBackend<'a, DB: Backend + ?Sized> where
    <DB::Construct as Construct>::Value: Eq + Hash + Ord
{ /* fields omitted */ }

Proving merkle database.

Methods

impl<'a, DB: Backend + ?Sized> ProvingBackend<'a, DB> where
    <DB::Construct as Construct>::Value: Eq + Hash + Ord
[src]

pub fn new(db: &'a mut DB) -> Self[src]

Create a new proving database.

pub fn from_state(
    state: ProvingState<<DB::Construct as Construct>::Value>,
    db: &'a mut DB
) -> Self
[src]

From proving state.

pub fn into_state(self) -> ProvingState<<DB::Construct as Construct>::Value>[src]

Into proving state.

Trait Implementations

impl<'a, DB: Backend + ?Sized> Backend for ProvingBackend<'a, DB> where
    <DB::Construct as Construct>::Value: Eq + Hash + Ord
[src]

type Construct = DB::Construct

Construct of the backend.

type Error = DB::Error

Error type for DB access.

impl<'a, DB: ReadBackend + ?Sized> ReadBackend for ProvingBackend<'a, DB> where
    <DB::Construct as Construct>::Value: Eq + Hash + Ord
[src]

impl<'a, DB: WriteBackend + ?Sized> WriteBackend for ProvingBackend<'a, DB> where
    <DB::Construct as Construct>::Value: Eq + Hash + Ord
[src]

impl<'a, DB: Backend + ?Sized> From<ProvingBackend<'a, DB>> for Proofs<<DB::Construct as Construct>::Value> where
    <DB::Construct as Construct>::Value: Eq + Hash + Ord
[src]

Auto Trait Implementations

impl<'a, DB: ?Sized> Sync for ProvingBackend<'a, DB> where
    DB: Sync,
    <DB as Backend>::Construct: Construct,
    <<DB as Backend>::Construct as Construct>::Value: Sync

impl<'a, DB: ?Sized> Send for ProvingBackend<'a, DB> where
    DB: Send,
    <DB as Backend>::Construct: Construct,
    <<DB as Backend>::Construct as Construct>::Value: Send

impl<'a, DB: ?Sized> Unpin for ProvingBackend<'a, DB> where
    <DB as Backend>::Construct: Construct,
    <<DB as Backend>::Construct as Construct>::Value: Unpin

impl<'a, DB: ?Sized> RefUnwindSafe for ProvingBackend<'a, DB> where
    DB: RefUnwindSafe,
    <DB as Backend>::Construct: Construct,
    <<DB as Backend>::Construct as Construct>::Value: RefUnwindSafe

impl<'a, DB> !UnwindSafe for ProvingBackend<'a, DB>

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