ptrie 0.7.2

Generic trie data structure implementation (prefix tree) with support for different key and value types, and functions to search for common prefixes or postfixes.
Documentation
//! Errors thrown by the library

use std::error::Error;
use std::fmt;

/// Enum of errors returned by this library
#[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),
        }
    }
}