[−][src]Trait bm::Tree
Represents a basic merkle tree with a known root.
Associated Types
Loading content...Required methods
fn root(&self) -> <Self::Construct as Construct>::Value
Root of the merkle tree.
fn drop<DB: WriteBackend<Construct = Self::Construct> + ?Sized>(
self,
db: &mut DB
) -> Result<(), Error<DB::Error>>
self,
db: &mut DB
) -> Result<(), Error<DB::Error>>
Drop the merkle tree.
fn into_raw(self) -> Raw<Self::RootStatus, Self::Construct>
Convert the tree into a raw tree.
Implementors
impl<R: RootStatus, C: Construct> Tree for List<R, C> where
C::Value: From<usize> + Into<usize>,
[src]
C::Value: From<usize> + Into<usize>,
type RootStatus = R
type Construct = C
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> Tree for Raw<R, C>
[src]
type RootStatus = R
type Construct = C
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> Tree for Vector<R, C>
[src]
type RootStatus = R
type Construct = C
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, S> Tree for LengthMixed<R, C, S> where
S: Sequence<Construct = C, RootStatus = Dangling>,
[src]
S: Sequence<Construct = C, RootStatus = Dangling>,
type RootStatus = R
type Construct = C
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, T, H: ArrayLength<u8>, V: ArrayLength<u8>> Tree for PackedList<R, C, T, H, V> where
C::Value: From<usize> + Into<usize> + From<GenericArray<u8, H>>,
T: From<GenericArray<u8, V>>,
[src]
C::Value: From<usize> + Into<usize> + From<GenericArray<u8, H>>,
T: From<GenericArray<u8, V>>,
type RootStatus = R
type Construct = C
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, T, H: ArrayLength<u8>, V: ArrayLength<u8>> Tree for PackedVector<R, C, T, H, V> where
C::Value: From<GenericArray<u8, H>>,
T: From<GenericArray<u8, V>>,
[src]
C::Value: From<GenericArray<u8, H>>,
T: From<GenericArray<u8, V>>,