[][src]Trait hypercore::NodeTrait

pub trait NodeTrait {
    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.

Get the hash contained in the node.

Loading content...

Implementations on Foreign Types

impl Node for DefaultNode
[src]

Loading content...

Implementors

impl Node for Node
[src]

Loading content...