huffcomp 0.1.25

Huffman coding program for compression and decompression of text files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::error::Error;
use std::fmt;

#[derive(Debug)]
pub struct InputError(pub String);

impl fmt::Display for InputError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "invalid input: {}", self.0)
    }
}

impl Error for InputError {}