Enum akd::history_tree_node::NodeType
source · [−]pub enum NodeType {
Leaf,
Root,
Interior,
}
Expand description
There are three types of nodes: root, leaf and interior.
Variants
Leaf
Nodes with this type only have dummy children.
Root
Nodes with this type do not have parents and their value includes a hash of their label.
Interior
Nodes of this type must have non-dummy children and their value is a hash of their children, along with the labels of the children.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for NodeType
impl UnwindSafe for NodeType
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.