[][src]Struct merklebtree::merklebtree::MerkleBTree

pub struct MerkleBTree {
    pub rootid: i32,
    pub m: u32,
}

Fields

rootid: i32m: u32

Methods

impl MerkleBTree[src]

pub fn new_empty<T>(order: u32, nodes: &mut Nodes<T>) -> Self where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

pub fn new_with<T>(order: u32, value: T, nodes: &mut Nodes<T>) -> Self where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

pub fn put<T>(&mut self, value: T, nodes: &mut Nodes<T>) where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

pub fn put_clone<T>(&mut self, value: T, nodes: &mut Nodes<T>) -> Nodes<T> where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

pub fn remove<T>(&mut self, value: T, nodes: &mut Nodes<T>) where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

pub fn remove_clone<T>(&mut self, value: T, nodes: &mut Nodes<T>) -> Nodes<T> where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

pub fn height<T>(&self, nodes: &Nodes<T>) -> i32 where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

pub fn get<T>(&mut self, value: T, nodes: &mut Nodes<T>) -> (T, bool) where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

pub fn get_clone<T>(
    &mut self,
    value: T,
    nodes: &mut Nodes<T>
) -> (T, bool, Nodes<T>) where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

pub fn search_recursively<T>(
    &mut self,
    start_node_id: i32,
    value: &T,
    nodes: &mut Nodes<T>
) -> (i32, i32, bool) where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

pub fn clone_search_subnode_from_root<T>(
    &mut self,
    start_node_id: i32,
    value: &T,
    nodes: &mut Nodes<T>
) -> (i32, i32, bool, Nodes<T>) where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

pub fn left<T>(&self, node_id: i32, nodes: &Nodes<T>) -> i32 where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

pub fn leftItem<T>(&self, node_id: i32, nodes: &mut Nodes<T>) -> Option<T> where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

pub fn right<T>(&self, node_id: i32, nodes: &Nodes<T>) -> i32 where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

pub fn rightItem<T>(&self, node_id: i32, nodes: &mut Nodes<T>) -> Option<T> where
    T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash
[src]

Trait Implementations

impl Clone for MerkleBTree[src]

impl Debug for MerkleBTree[src]

Auto Trait Implementations

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]