Enum off_blockway::tree::Tree [] [src]

pub enum Tree<T> {
    Empty {
        hash: String,
    },
    Leaf {
        hash: String,
        value: T,
    },
    Node {
        hash: String,
        left: Box<Tree<T>>,
        right: Box<Tree<T>>,
    },
}

Variants

Fields of Empty

Fields of Leaf

Fields of Node

Methods

impl<T: Display> Tree<T>
[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<T: Clone> Clone for Tree<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more