[−][src]Trait hypercore::NodeTrait
Functions that need to be implemented for the Data that MerkleTreeStream
works with.
Required methods
fn len(&self) -> usize
Get the length of the node.
fn is_empty(&self) -> bool
Check if the length is zero.
fn parent(&self) -> usize
Get the position of the parent of the node.
fn index(&self) -> usize
Get the position at which the node was found.
fn hash(&self) -> &[u8]
Get the hash contained in the node.
Implementations on Foreign Types
impl Node for DefaultNode[src]
impl Node for DefaultNodefn hash(&self) -> &[u8][src]
fn hash(&self) -> &[u8]fn len(&self) -> usize[src]
fn len(&self) -> usizefn is_empty(&self) -> bool[src]
fn is_empty(&self) -> boolfn index(&self) -> usize[src]
fn index(&self) -> usizefn parent(&self) -> usize[src]
fn parent(&self) -> usize