Struct tari_mmr::MerkleCheckPoint[][src]

pub struct MerkleCheckPoint { /* fields omitted */ }

Implementations

Apply this checkpoint to the MMR provided. Take care: The deleted set is not compressed after returning from here.

Resets the current MerkleCheckpoint. The accumulated_nodes_added_count is set to the current MerkleCheckpoints count.

Resets the current MerkleCheckpoint. The accumulated_nodes_added_count is set to the given MerkleCheckpoints count.

Add a hash to the set of nodes added.

Add a a deleted index to the set of deleted nodes.

Return a reference to the hashes of the nodes added in the checkpoint

Return a reference to the roaring bitmap of nodes that were deleted in this checkpoint

Return the the total accumulated added node count including this checkpoint

Merge the provided Merkle checkpoint into the current checkpoint.

Break a checkpoint up into its constituent parts

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Completely overwrites this value.

Performs the conversion.

Called to initialize a place to a valid value, after it is set to all-bits-zero. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.