[−][src]Struct merklebtree::merklebtree::MerkleBTree
Fields
rootid: i32
m: 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]
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
pub fn new_with<T>(order: u32, value: T, nodes: &mut Nodes<T>) -> Self where
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
[src]
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
pub fn put<T>(&mut self, value: T, nodes: &mut Nodes<T>) where
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
[src]
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
pub fn put_clone<T>(&mut self, value: T, nodes: &mut Nodes<T>) -> Nodes<T> where
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
[src]
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
pub fn remove<T>(&mut self, value: T, nodes: &mut Nodes<T>) where
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
[src]
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
pub fn remove_clone<T>(&mut self, value: T, nodes: &mut Nodes<T>) -> Nodes<T> where
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
[src]
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
pub fn height<T>(&self, nodes: &Nodes<T>) -> i32 where
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
[src]
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
pub fn get<T>(&mut self, value: T, nodes: &mut Nodes<T>) -> (T, bool) where
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
[src]
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
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]
&mut self,
value: T,
nodes: &mut Nodes<T>
) -> (T, bool, Nodes<T>) where
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
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]
&mut self,
start_node_id: i32,
value: &T,
nodes: &mut Nodes<T>
) -> (i32, i32, bool) where
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
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]
&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,
pub fn left<T>(&self, node_id: i32, nodes: &Nodes<T>) -> i32 where
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
[src]
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
pub fn leftItem<T>(&self, node_id: i32, nodes: &mut Nodes<T>) -> Option<T> where
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
[src]
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
pub fn right<T>(&self, node_id: i32, nodes: &Nodes<T>) -> i32 where
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
[src]
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
pub fn rightItem<T>(&self, node_id: i32, nodes: &mut Nodes<T>) -> Option<T> where
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
[src]
T: PartialEq + PartialOrd + Ord + Clone + Debug + CalculateHash,
Trait Implementations
impl Clone for MerkleBTree
[src]
fn clone(&self) -> MerkleBTree
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MerkleBTree
[src]
Auto Trait Implementations
impl Send for MerkleBTree
impl Sync for MerkleBTree
impl Unpin for MerkleBTree
impl UnwindSafe for MerkleBTree
impl RefUnwindSafe for MerkleBTree
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,