Struct mrkl::tree::MerkleTree[][src]

pub struct MerkleTree<H, T> { /* fields omitted */ }

A Merkle tree.

Values of this type represent fully constructed Merkle trees. A valid tree either has a single leaf node as the root node, or has a hierarchy of nodes terminating with leaf nodes and with hash-only nodes at levels above leaves.

MerkleTree hierarchies are immutable: it's not possible to e.g. swap out nodes in safe code because doing so would violate the hash integrity.

Methods

impl<H, T> MerkleTree<H, T>
[src]

Returns the root node of the tree as a borrowed reference.

Trait Implementations

impl<H: Debug, T: Debug> Debug for MerkleTree<H, T>
[src]

Formats the value using the given formatter. Read more

impl<H: Eq, T> Eq for MerkleTree<H, T>
[src]

impl<H: PartialEq, T> PartialEq<MerkleTree<H, T>> for MerkleTree<H, T>
[src]

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

This method tests for !=.

impl<H: PartialEq, T> PartialEq<Node<H, T>> for MerkleTree<H, T>
[src]

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

This method tests for !=.

impl<H: PartialEq, T> PartialEq<LeafNode<H, T>> for MerkleTree<H, T>
[src]

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

This method tests for !=.

impl<H: PartialEq, T> PartialEq<HashNode<H, T>> for MerkleTree<H, T>
[src]

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

This method tests for !=.

impl<H: PartialEq, T> PartialEq<MerkleTree<H, T>> for Node<H, T>
[src]

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

This method tests for !=.

impl<H: PartialEq, T> PartialEq<MerkleTree<H, T>> for LeafNode<H, T>
[src]

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

This method tests for !=.

impl<H: PartialEq, T> PartialEq<MerkleTree<H, T>> for HashNode<H, T>
[src]

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

This method tests for !=.

impl<H: Hash, T> Hash for MerkleTree<H, T>
[src]

Feeds this value into the given [Hasher]. Read more

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

Auto Trait Implementations

impl<H, T> Send for MerkleTree<H, T> where
    H: Send,
    T: Send

impl<H, T> Sync for MerkleTree<H, T> where
    H: Sync,
    T: Sync