[−][src]Struct bm::NoopBackend
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.
fn intermediate_of(
&self,
left: &ValueOf<Self>,
right: &ValueOf<Self>
) -> IntermediateOf<Self>
[src]
&self,
left: &ValueOf<Self>,
right: &ValueOf<Self>
) -> IntermediateOf<Self>
fn empty_at(
&mut self,
depth_to_bottom: usize
) -> Result<ValueOf<Self>, Self::Error>
[src]
&mut self,
depth_to_bottom: usize
) -> Result<ValueOf<Self>, Self::Error>
fn get(
&self,
_key: &IntermediateOf<Self>
) -> Result<(ValueOf<Self>, ValueOf<Self>), Self::Error>
[src]
&self,
_key: &IntermediateOf<Self>
) -> Result<(ValueOf<Self>, ValueOf<Self>), Self::Error>
fn rootify(&mut self, _key: &IntermediateOf<Self>) -> Result<(), Self::Error>
[src]
fn unrootify(&mut self, _key: &IntermediateOf<Self>) -> Result<(), Self::Error>
[src]
fn insert(
&mut self,
_key: IntermediateOf<Self>,
_value: (ValueOf<Self>, ValueOf<Self>)
) -> Result<(), Self::Error>
[src]
&mut self,
_key: IntermediateOf<Self>,
_value: (ValueOf<Self>, ValueOf<Self>)
) -> Result<(), Self::Error>
impl<D: Clone + Digest, T: Clone + AsRef<[u8]> + Default> Clone for NoopBackend<D, T>
[src]
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
Auto Trait Implementations
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> 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> 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> 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,
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,
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