[][src]Struct merklebtree::merklebtree::Nodes

pub struct Nodes<T> where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
{ pub nodes_map: HashMap<i32, Node<T>>, pub size: u32, pub root_id: i32, pub content_size: i32, pub next_id: i32, pub m: u32, }

A content addressed B-tree backed by a content addressed hashtable. Each tree node is stored as an object in the content addressed storage, and contains links to its children. Each link is a hash which can be loooked up from the content addressed storage.

Fields

nodes_map: HashMap<i32, Node<T>>size: u32root_id: i32content_size: i32next_id: i32m: u32

Methods

impl<T> Nodes<T> where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

pub fn iterator(&self)[src]

pub fn merkleroot(&self) -> String[src]

pub fn recalculate_merkleroot(&mut self) -> Self[src]

Trait Implementations

impl<T: Clone> Clone for Nodes<T> where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

impl<T: Debug> Debug for Nodes<T> where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

Auto Trait Implementations

impl<T> Send for Nodes<T> where
    T: Send

impl<T> Sync for Nodes<T> where
    T: Sync

impl<T> Unpin for Nodes<T> where
    T: Unpin

impl<T> UnwindSafe for Nodes<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Nodes<T> where
    T: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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