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§
Sourcefn load(&self) -> LinderaResult<Dictionary>
fn load(&self) -> LinderaResult<Dictionary>
Load dictionary from configured location or embedded data
Sourcefn load_from_path(&self, path: &Path) -> LinderaResult<Dictionary>
fn load_from_path(&self, path: &Path) -> LinderaResult<Dictionary>
Load dictionary from a specific path (optional for embedded loaders)