Struct chewing::dictionary::SystemDictionaryLoader
source · pub struct SystemDictionaryLoader { /* private fields */ }Expand description
Automatically searchs and loads system dictionaries.
Implementations§
source§impl SystemDictionaryLoader
impl SystemDictionaryLoader
sourcepub fn new() -> SystemDictionaryLoader
pub fn new() -> SystemDictionaryLoader
Creates a new system dictionary loader.
sourcepub fn sys_path(self, path: impl Into<String>) -> SystemDictionaryLoader
pub fn sys_path(self, path: impl Into<String>) -> SystemDictionaryLoader
Override the default system dictionary search path.
sourcepub fn load(&self) -> Result<Vec<Box<dyn Dictionary>>, LoadDictionaryError>
pub fn load(&self) -> Result<Vec<Box<dyn Dictionary>>, LoadDictionaryError>
Searches and loads the system dictionaries and extra dictionaries.
If no dictionary were found, a builtn minimum dictionary will be loaded.
sourcepub fn load_abbrev(&self) -> Result<AbbrevTable, LoadDictionaryError>
pub fn load_abbrev(&self) -> Result<AbbrevTable, LoadDictionaryError>
Loads the abbrev table.
sourcepub fn load_symbol_selector(
&self,
) -> Result<SymbolSelector, LoadDictionaryError>
pub fn load_symbol_selector( &self, ) -> Result<SymbolSelector, LoadDictionaryError>
Loads the symbol table.
Trait Implementations§
source§impl Debug for SystemDictionaryLoader
impl Debug for SystemDictionaryLoader
source§impl Default for SystemDictionaryLoader
impl Default for SystemDictionaryLoader
source§fn default() -> SystemDictionaryLoader
fn default() -> SystemDictionaryLoader
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SystemDictionaryLoader
impl RefUnwindSafe for SystemDictionaryLoader
impl Send for SystemDictionaryLoader
impl Sync for SystemDictionaryLoader
impl Unpin for SystemDictionaryLoader
impl UnwindSafe for SystemDictionaryLoader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more