Enum merkle::Tree
[−]
[src]
pub enum Tree<T> { Leaf { hash: Vec<u8>, value: T, }, Node { hash: Vec<u8>, left: Box<Tree<T>>, right: Box<Tree<T>>, }, }
Binary Tree where leaves hold a stand-alone value.
Variants
Leaf
Fields
hash: Vec<u8> | |
value: T |
Node
Fields
hash: Vec<u8> | |
left: Box<Tree<T>> | |
right: Box<Tree<T>> |