use std::error::Error;
use std::fmt;
#[derive(Debug)]
pub enum TrieError {
NotFound(String),
}
impl Error for TrieError {}
impl fmt::Display for TrieError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self {
TrieError::NotFound(ref msg) => write!(f, "{}", msg),
}
}
}