[−][src]Enum multiproof_rs::binary_tree::BinaryTree
Variants
Branch(Box<BinaryTree>, Box<BinaryTree>)
Trait Implementations
impl Clone for BinaryTree
[src]
fn clone(&self) -> BinaryTree
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BinaryTree
[src]
impl Default for BinaryTree
[src]
impl NodeType for BinaryTree
[src]
type Key = BinaryKey
The tree's key type. Must be specified when implementing this trait.
type Value = Vec<u8>
The tree's value type. Must be specified when implementing this trait.
impl PartialEq<BinaryTree> for BinaryTree
[src]
fn eq(&self, other: &BinaryTree) -> bool
[src]
fn ne(&self, other: &BinaryTree) -> bool
[src]
impl StructuralPartialEq for BinaryTree
[src]
impl Tree<BinaryTree> for BinaryTree
[src]
fn is_leaf(&self) -> bool
[src]
fn is_empty(&self) -> bool
[src]
fn num_children(&self) -> usize
[src]
fn ith_child(&self, index: usize) -> Option<&Self>
[src]
fn set_ith_child(&mut self, index: usize, child: &Self)
[src]
fn insert(&mut self, key: &BinaryKey, value: Vec<u8>) -> Result<(), String>
[src]
fn has_key(&self, key: &BinaryKey) -> bool
[src]
fn value(&self) -> Option<&Vec<u8>>
[src]
fn value_length(&self) -> Option<usize>
[src]
fn from_hash(h: Vec<u8>) -> Self
[src]
fn new_extension(_ext: Vec<u8>, _child: Self) -> Self
[src]
fn new_branch() -> Self
[src]
fn new_leaf(key: Vec<u8>, value: Vec<u8>) -> Self
[src]
fn new_empty() -> Self
[src]
ⓘImportant traits for NodeChildIterator<'a, N, T>fn children(&self) -> NodeChildIterator<N, Self>
[src]
ⓘImportant traits for NodeChildIterator<'a, N, T>
Auto Trait Implementations
impl RefUnwindSafe for BinaryTree
impl Send for BinaryTree
impl Sync for BinaryTree
impl Unpin for BinaryTree
impl UnwindSafe for BinaryTree
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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>,