pub enum SystemDictionaryConfig {
Bundled(JPreprocessDictionaryKind),
File(PathBuf),
}Expand description
System dictionary configuration for JPreprocess.
Variants§
Bundled(JPreprocessDictionaryKind)
Use self-contained dictionary. This is only valid if appropreate feature is enabled.
File(PathBuf)
Use pre-built external lindera/jpreprocess dictionary. The PathBuf is the path to dictionary.
- When you are using lindera dictionary: Normal dictionary cannot be used; it must contain the accent position and accent rule.
- When you are using jpreprocess dictionary: The JPreprocess version needs to be same as the JPreprocess that built the dictionary.
Implementations§
source§impl SystemDictionaryConfig
impl SystemDictionaryConfig
pub fn load(self) -> JPreprocessResult<Dictionary>
Auto Trait Implementations§
impl RefUnwindSafe for SystemDictionaryConfig
impl Send for SystemDictionaryConfig
impl Sync for SystemDictionaryConfig
impl Unpin for SystemDictionaryConfig
impl UnwindSafe for SystemDictionaryConfig
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