Trait merkle_tree_stream::Node [] [src]

pub trait Node {
    fn len(&self) -> usize;
fn is_empty(&self) -> bool;
fn parent(&self) -> usize;
fn index(&self) -> usize;
fn hash(&self) -> &[u8]; }

Functions that need to be implemented for the Data that MerkleTreeStream works with.

Required Methods

Get the length of the node.

Check if the length is zero.

Get the position of the parent of the node.

Get the position at which the node was found.

Important traits for &'a mut [u8]

Get the hash contained in the node.

Implementors