pub struct Node<T: AsRef<[u8]>> {
pub hash: Hash,
pub left: Rc<NodeType<T>>,
pub right: Rc<NodeType<T>>,
}Expand description
A middle-layer node, containing two nodes underneith that is of some NodeType variation
Fields§
§hash: Hash§left: Rc<NodeType<T>>§right: Rc<NodeType<T>>Implementations§
Trait Implementations§
impl<T: AsRef<[u8]>> StructuralPartialEq for Node<T>
Auto Trait Implementations§
impl<T> Freeze for Node<T>
impl<T> RefUnwindSafe for Node<T>where
T: RefUnwindSafe,
impl<T> !Send for Node<T>
impl<T> !Sync for Node<T>
impl<T> Unpin for Node<T>
impl<T> UnwindSafe for Node<T>where
T: RefUnwindSafe,
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