aboutsummaryrefslogtreecommitdiff
path: root/src/tree.rs
blob: d3cca22318b0f4e36342f5858b171254aa9a7dab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use super::symbols::Symbols;

struct Node {
    occurence: usize,
    content: Content,
}

enum Content {
    Leaf(i8),
    Parent {
        left: Box<Node>,
        right: Box<Node>,
    },
}

type Tree = Node;

// impl Tree {
//     fn from_symbols(symbols: Symbols) -> Tree {
//         symbols.0
//     }
// }