[][src]Struct geen::MutableMmrLeafNodes

pub struct MutableMmrLeafNodes {
    pub leaf_hashes: Vec<H256>,
    pub deleted: Bitmap,
}

The MutableMmrLeafNodes is used to create and share a restorable state for an MMR.

Fields

leaf_hashes: Vec<H256>deleted: Bitmap

Methods

impl MutableMmrLeafNodes[src]

pub fn new(leaf_hashes: Vec<H256>, deleted: Bitmap) -> Self[src]

Create a new MutableMmrLeafNodes using the set of leaf hashes and deleted nodes.

pub fn combine(&mut self, next_state: MutableMmrLeafNodes)[src]

Merge the current state with the next state bundle

Trait Implementations

impl Clone for MutableMmrLeafNodes[src]

impl PartialEq<MutableMmrLeafNodes> for MutableMmrLeafNodes[src]

impl Debug for MutableMmrLeafNodes[src]

impl StructuralPartialEq for MutableMmrLeafNodes[src]

impl<'de> Deserialize<'de> for MutableMmrLeafNodes[src]

impl Serialize for MutableMmrLeafNodes[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> FromCast<T> for T

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> FromBits<T> for T

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,