lexrs 0.2.0

Efficient lexicon data structures: Trie and DAWG
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Debug, Error)]
pub enum LexError {
    #[error("Invalid wildcard expression: {0}")]
    InvalidWildcard(String),

    #[error("Words must be inserted in alphabetical order. Previous: '{prev}', Current: '{curr}'")]
    OrderViolation { prev: String, curr: String },

    #[error("IO error: {0}")]
    Io(#[from] std::io::Error),
}