DictionaryLoader

Trait DictionaryLoader 

Source
pub trait DictionaryLoader {
    // Provided methods
    fn load(&self) -> LinderaResult<Dictionary> { ... }
    fn load_from_path(&self, path: &Path) -> LinderaResult<Dictionary> { ... }
}
Expand description

Common trait for all dictionary loaders (both external and embedded)

Provided Methods§

Source

fn load(&self) -> LinderaResult<Dictionary>

Load dictionary from configured location or embedded data

Source

fn load_from_path(&self, path: &Path) -> LinderaResult<Dictionary>

Load dictionary from a specific path (optional for embedded loaders)

Implementors§