Struct huffman::Tree [] [src]

pub struct Tree {
    pub left: Option<Box<Tree>>,
    pub right: Option<Box<Tree>>,
    pub value: Option<u8>,
}

A huffman tree.

Fields

left
right
value

Methods

impl Tree

fn new() -> Self

fn new_with_value(value: u8) -> Self

Trait Implementations

Derived Implementations

impl Default for Tree

fn default() -> Tree