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