pub struct BinTrieNode {
pub hash: Hash,
pub bit_idx: u8,
pub left: Option<Box<BinTrieElement>>,
pub right: Option<Box<BinTrieElement>>,
}Expand description
Internal node in the binary trie
Fields§
§hash: Hash§bit_idx: u8§left: Option<Box<BinTrieElement>>§right: Option<Box<BinTrieElement>>Implementations§
Source§impl BinTrieNode
impl BinTrieNode
pub fn new(bit_idx: u8) -> Self
Sourcepub fn compute_hash(&mut self)
pub fn compute_hash(&mut self)
Compute the hash of this node according to the C implementation
Trait Implementations§
Source§impl Clone for BinTrieNode
impl Clone for BinTrieNode
Source§fn clone(&self) -> BinTrieNode
fn clone(&self) -> BinTrieNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinTrieNode
impl Debug for BinTrieNode
Source§impl PartialEq for BinTrieNode
impl PartialEq for BinTrieNode
impl StructuralPartialEq for BinTrieNode
Auto Trait Implementations§
impl Freeze for BinTrieNode
impl RefUnwindSafe for BinTrieNode
impl Send for BinTrieNode
impl Sync for BinTrieNode
impl Unpin for BinTrieNode
impl UnwindSafe for BinTrieNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more