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: Option<Box<Tree>> right: Option<Box<Tree>> value: Option<u8>

Methods

impl Tree
[src]

fn new() -> Self

fn new_with_value(value: u8) -> Self

Trait Implementations

impl Default for Tree
[src]

fn default() -> Tree

Returns the "default value" for a type. Read more