Skip to main content

huffman_encode

Function huffman_encode 

Source
pub fn huffman_encode(
    symbols: &[String],
    code_table: &HashMap<String, String>,
) -> Result<String, Error>
Expand description

Encode a sequence of symbols using a Huffman code table.