pub fn get_root(s: &str) -> Box<Node>
Expand description

Gets the Huffman tree for a string.

Arguments

  • s - The string of which the tree should be created.

Returns

A Box containing the entire tree.