[][src]Trait merkle_tree_stream::Node

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

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

Required methods

fn len(&self) -> u64

Get the length of the node.

fn is_empty(&self) -> bool

Check if the length is zero.

fn parent(&self) -> u64

Get the position of the parent of the node.

fn index(&self) -> u64

Get the position at which the node was found.

fn hash(&self) -> &[u8]

Get the hash contained in the node.

Loading content...

Implementors

impl Node for DefaultNode[src]

Loading content...