Struct hypercore::Node[][src]

pub struct Node { /* fields omitted */ }

Nodes that are persisted to disk.

Methods

impl Node
[src]

Create a new instance.

Convert a vector to a new instance.

Requires the index at which the buffer was read to be passed.

Convert to a buffer that can be written to disk.

Trait Implementations

impl Debug for Node
[src]

Formats the value using the given formatter. Read more

impl Clone for Node
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Node
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Node
[src]

impl NodeTrait for Node
[src]

Get the position at which the node was found.

Important traits for &'a [u8]

Get the hash contained in the node.

Get the length of the node.

Check if the length is zero.

Get the position of the parent of the node.

impl AsRef<Node> for Node
[src]

Important traits for &'a mut R

Performs the conversion.

impl Display for Node
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Node

impl Sync for Node