[−][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 DefaultNode
fn hash(&self) -> &[u8]
[src]
fn hash(&self) -> &[u8]
fn len(&self) -> usize
[src]
fn len(&self) -> usize
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
fn index(&self) -> usize
[src]
fn index(&self) -> usize
fn parent(&self) -> usize
[src]
fn parent(&self) -> usize