[−][src]Enum multiproof_rs::node::Node
Variants
Methods
impl Node
[src]
pub fn graphviz(&self) -> String
[src]
pub fn is_key_present(&self, key: &NibbleKey) -> bool
[src]
pub fn hash(&self) -> Vec<u8>
[src]
pub fn composition(&self) -> Vec<u8>
[src]
Trait Implementations
impl KeyValueStore for Node
[src]
type Key = NibbleKey
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 Tree<Node> for Node
[src]
fn is_leaf(&self) -> bool
[src]
fn is_empty(&self) -> bool
[src]
fn num_children(&self) -> usize
[src]
Returns the maximum child count of the tree's root.
Branch nodes will always report 16, as empty slots are counted as children.
fn ith_child(&self, index: usize) -> Option<&Self>
[src]
Return the tree root's ith child.
The function will return EmptySlot
instead of None
if a branch node has no ith child.
fn set_ith_child(&mut self, index: usize, child: &Self)
[src]
ⓘImportant traits for NodeChildIterator<'a, S, T>fn children(&self) -> NodeChildIterator<Self, Self>
[src]
ⓘImportant traits for NodeChildIterator<'a, S, T>
fn insert(&mut self, key: &NibbleKey, value: Vec<u8>) -> Result<(), String>
[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]
impl Clone for Node
[src]
impl Default for Node
[src]
impl PartialEq<Node> for Node
[src]
impl Debug for Node
[src]
impl<'_> Index<&'_ NibbleKey> for Node
[src]
impl StructuralPartialEq for Node
[src]
impl Decodable for Node
[src]
fn decode(rlp: &Rlp) -> Result<Self, DecoderError>
[src]
impl Encodable for Node
[src]
Auto Trait Implementations
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
impl RefUnwindSafe for Node
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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 = !
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,
impl<T> Same<T> for T
type Output = T
Should always be Self