[][src]Struct merkle_tree_stream::PartialNode

pub struct PartialNode {
    pub parent: u64,
    // some fields omitted
}

Intermediate Node representation. Same as Node, but without the .hash field.

Fields

parent: u64

Reference to this node's parent node.

Implementations

impl PartialNode[src]

pub fn len(&self) -> u64[src]

Returns the number of elements in the Node, also referred to as its 'length'.

pub fn is_empty(&self) -> bool[src]

Returns true if the Node contains no elements.

pub fn index(&self) -> u64[src]

Get the current index into the stream.

pub fn data(&self) -> &NodeKind[src]

Get the data from the thingy.

Trait Implementations

impl Clone for PartialNode[src]

impl Debug for PartialNode[src]

impl Deref for PartialNode[src]

type Target = NodeKind

The resulting type after dereferencing.

impl DerefMut for PartialNode[src]

impl Eq for PartialNode[src]

impl Ord for PartialNode[src]

impl PartialEq<PartialNode> for PartialNode[src]

impl PartialOrd<PartialNode> for PartialNode[src]

impl StructuralEq for PartialNode[src]

impl StructuralPartialEq for PartialNode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.