[−][src]Struct bm_le::NoopBackend
Noop merkle database.
Methods
impl<D, T> NoopBackend<D, T> where
D: Digest,
T: Clone + Default + AsRef<[u8]>,
[src]
D: Digest,
T: Clone + Default + AsRef<[u8]>,
pub fn new_with_unit_empty(
value: <NoopBackend<D, T> as Backend>::End
) -> NoopBackend<D, T>
[src]
value: <NoopBackend<D, T> as Backend>::End
) -> NoopBackend<D, T>
Create an in-memory database with unit empty value.
pub fn new_with_inherited_empty() -> NoopBackend<D, T>
[src]
Create an in-memory database with inherited empty value.
Trait Implementations
impl<D, T> Clone for NoopBackend<D, T> where
D: Clone + Digest,
T: Clone + Default + AsRef<[u8]>,
[src]
D: Clone + Digest,
T: Clone + Default + AsRef<[u8]>,
fn clone(&self) -> NoopBackend<D, T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<D, V> Backend for NoopBackend<D, V> where
D: Digest,
V: Clone + Default + AsRef<[u8]>,
[src]
D: Digest,
V: Clone + Default + AsRef<[u8]>,
type Intermediate = GenericArray<u8, <D as Digest>::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.
fn intermediate_of(
&self,
left: &Value<<NoopBackend<D, V> as Backend>::Intermediate, <NoopBackend<D, V> as Backend>::End>,
right: &Value<<NoopBackend<D, V> as Backend>::Intermediate, <NoopBackend<D, V> as Backend>::End>
) -> <NoopBackend<D, V> as Backend>::Intermediate
[src]
&self,
left: &Value<<NoopBackend<D, V> as Backend>::Intermediate, <NoopBackend<D, V> as Backend>::End>,
right: &Value<<NoopBackend<D, V> as Backend>::Intermediate, <NoopBackend<D, V> as Backend>::End>
) -> <NoopBackend<D, V> as Backend>::Intermediate
fn empty_at(
&mut self,
depth_to_bottom: usize
) -> Result<Value<<NoopBackend<D, V> as Backend>::Intermediate, <NoopBackend<D, V> as Backend>::End>, <NoopBackend<D, V> as Backend>::Error>
[src]
&mut self,
depth_to_bottom: usize
) -> Result<Value<<NoopBackend<D, V> as Backend>::Intermediate, <NoopBackend<D, V> as Backend>::End>, <NoopBackend<D, V> as Backend>::Error>
fn get(
&self,
_key: &<NoopBackend<D, V> as Backend>::Intermediate
) -> Result<(Value<<NoopBackend<D, V> as Backend>::Intermediate, <NoopBackend<D, V> as Backend>::End>, Value<<NoopBackend<D, V> as Backend>::Intermediate, <NoopBackend<D, V> as Backend>::End>), <NoopBackend<D, V> as Backend>::Error>
[src]
&self,
_key: &<NoopBackend<D, V> as Backend>::Intermediate
) -> Result<(Value<<NoopBackend<D, V> as Backend>::Intermediate, <NoopBackend<D, V> as Backend>::End>, Value<<NoopBackend<D, V> as Backend>::Intermediate, <NoopBackend<D, V> as Backend>::End>), <NoopBackend<D, V> as Backend>::Error>
fn rootify(
&mut self,
_key: &<NoopBackend<D, V> as Backend>::Intermediate
) -> Result<(), <NoopBackend<D, V> as Backend>::Error>
[src]
&mut self,
_key: &<NoopBackend<D, V> as Backend>::Intermediate
) -> Result<(), <NoopBackend<D, V> as Backend>::Error>
fn unrootify(
&mut self,
_key: &<NoopBackend<D, V> as Backend>::Intermediate
) -> Result<(), <NoopBackend<D, V> as Backend>::Error>
[src]
&mut self,
_key: &<NoopBackend<D, V> as Backend>::Intermediate
) -> Result<(), <NoopBackend<D, V> as Backend>::Error>
fn insert(
&mut self,
_key: <NoopBackend<D, V> as Backend>::Intermediate,
_value: (Value<<NoopBackend<D, V> as Backend>::Intermediate, <NoopBackend<D, V> as Backend>::End>, Value<<NoopBackend<D, V> as Backend>::Intermediate, <NoopBackend<D, V> as Backend>::End>)
) -> Result<(), <NoopBackend<D, V> as Backend>::Error>
[src]
&mut self,
_key: <NoopBackend<D, V> as Backend>::Intermediate,
_value: (Value<<NoopBackend<D, V> as Backend>::Intermediate, <NoopBackend<D, V> as Backend>::End>, Value<<NoopBackend<D, V> as Backend>::Intermediate, <NoopBackend<D, V> as Backend>::End>)
) -> Result<(), <NoopBackend<D, V> as Backend>::Error>
Auto Trait Implementations
impl<D, T> Sync for NoopBackend<D, T> where
T: Sync,
<D as Digest>::OutputSize: ArrayLength<u8>,
T: Sync,
<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,
T: Unpin,
<<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: Unpin,
impl<D, T> Send for NoopBackend<D, T> where
T: Send,
<D as Digest>::OutputSize: ArrayLength<u8>,
T: Send,
<D as Digest>::OutputSize: ArrayLength<u8>,
impl<D, T> RefUnwindSafe for NoopBackend<D, T> where
T: RefUnwindSafe,
<<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
T: RefUnwindSafe,
<<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<D, T> UnwindSafe for NoopBackend<D, T> where
T: RefUnwindSafe + UnwindSafe,
<<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe + UnwindSafe,
T: RefUnwindSafe + UnwindSafe,
<<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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, 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