[−][src]Struct bm::Raw
Raw merkle tree.
Methods
impl<R: RootStatus, DB: Backend> Raw<R, DB>
[src]
pub fn subtree(
&self,
db: &DB,
index: Index
) -> Result<DanglingRaw<DB>, Error<DB::Error>>
[src]
&self,
db: &DB,
index: Index
) -> Result<DanglingRaw<DB>, Error<DB::Error>>
Return a reference to a subtree.
pub fn get(
&self,
db: &DB,
index: Index
) -> Result<Option<ValueOf<DB>>, Error<DB::Error>>
[src]
&self,
db: &DB,
index: Index
) -> Result<Option<ValueOf<DB>>, Error<DB::Error>>
Get value from the tree via generalized merkle index.
pub fn set(
&mut self,
db: &mut DB,
index: Index,
set: ValueOf<DB>
) -> Result<(), Error<DB::Error>>
[src]
&mut self,
db: &mut DB,
index: Index,
set: ValueOf<DB>
) -> Result<(), Error<DB::Error>>
Set value of the merkle tree via generalized merkle index.
Trait Implementations
impl<R: RootStatus, DB: Backend> Tree for Raw<R, DB>
[src]
type RootStatus = R
Root status of the tree.
type Backend = DB
Backend of the tree.
fn root(&self) -> ValueOf<DB>
[src]
fn drop(self, db: &mut DB) -> Result<(), Error<DB::Error>>
[src]
fn into_raw(self) -> Raw<R, DB>
[src]
impl<R: RootStatus, DB: Backend> Leak for Raw<R, DB>
[src]
type Metadata = ValueOf<DB>
Metadata to represent this merkle struct.
fn metadata(&self) -> Self::Metadata
[src]
fn from_leaked(root: Self::Metadata) -> Self
[src]
impl<R: RootStatus, DB: Backend> Default for Raw<R, DB>
[src]
Auto Trait Implementations
impl<R, DB> Sync for Raw<R, DB> where
R: Sync,
<DB as Backend>::End: Sync,
<DB as Backend>::Intermediate: Sync,
R: Sync,
<DB as Backend>::End: Sync,
<DB as Backend>::Intermediate: Sync,
impl<R, DB> Unpin for Raw<R, DB> where
R: Unpin,
<DB as Backend>::End: Unpin,
<DB as Backend>::Intermediate: Unpin,
R: Unpin,
<DB as Backend>::End: Unpin,
<DB as Backend>::Intermediate: Unpin,
impl<R, DB> Send for Raw<R, DB> where
R: Send,
<DB as Backend>::End: Send,
<DB as Backend>::Intermediate: Send,
R: Send,
<DB as Backend>::End: Send,
<DB as Backend>::Intermediate: Send,
impl<R, DB> RefUnwindSafe for Raw<R, DB> where
R: RefUnwindSafe,
<DB as Backend>::End: RefUnwindSafe,
<DB as Backend>::Intermediate: RefUnwindSafe,
R: RefUnwindSafe,
<DB as Backend>::End: RefUnwindSafe,
<DB as Backend>::Intermediate: RefUnwindSafe,
impl<R, DB> UnwindSafe for Raw<R, DB> where
R: UnwindSafe,
<DB as Backend>::End: UnwindSafe,
<DB as Backend>::Intermediate: UnwindSafe,
R: UnwindSafe,
<DB as Backend>::End: UnwindSafe,
<DB as Backend>::Intermediate: 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, 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