[−][src]Struct bm::ProvingBackend
Proving merkle database.
Methods
impl<'a, DB: Backend + ?Sized> ProvingBackend<'a, DB> where
<DB::Construct as Construct>::Value: Eq + Hash + Ord,
[src]
<DB::Construct as Construct>::Value: Eq + Hash + Ord,
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]
state: ProvingState<<DB::Construct as Construct>::Value>,
db: &'a mut DB
) -> Self
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]
<DB::Construct as Construct>::Value: Eq + Hash + Ord,
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]
<DB::Construct as Construct>::Value: Eq + Hash + Ord,
fn get(
&mut self,
key: &<DB::Construct as Construct>::Value
) -> Result<Option<(<DB::Construct as Construct>::Value, <DB::Construct as Construct>::Value)>, Self::Error>
[src]
&mut self,
key: &<DB::Construct as Construct>::Value
) -> Result<Option<(<DB::Construct as Construct>::Value, <DB::Construct as Construct>::Value)>, Self::Error>
impl<'a, DB: WriteBackend + ?Sized> WriteBackend for ProvingBackend<'a, DB> where
<DB::Construct as Construct>::Value: Eq + Hash + Ord,
[src]
<DB::Construct as Construct>::Value: Eq + Hash + Ord,
fn rootify(
&mut self,
key: &<DB::Construct as Construct>::Value
) -> Result<(), Self::Error>
[src]
&mut self,
key: &<DB::Construct as Construct>::Value
) -> Result<(), Self::Error>
fn unrootify(
&mut self,
key: &<DB::Construct as Construct>::Value
) -> Result<(), Self::Error>
[src]
&mut self,
key: &<DB::Construct as Construct>::Value
) -> Result<(), Self::Error>
fn insert(
&mut self,
key: <DB::Construct as Construct>::Value,
value: (<DB::Construct as Construct>::Value, <DB::Construct as Construct>::Value)
) -> Result<(), Self::Error>
[src]
&mut self,
key: <DB::Construct as Construct>::Value,
value: (<DB::Construct as Construct>::Value, <DB::Construct as Construct>::Value)
) -> Result<(), Self::Error>
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]
<DB::Construct as Construct>::Value: Eq + Hash + Ord,
fn from(backend: ProvingBackend<'a, DB>) -> Self
[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,
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,
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,
<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,
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]
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