pub struct WordDictionaryConfig {
pub system: Box<dyn DictionarySerializer>,
pub user: Option<Box<dyn DictionarySerializer>>,
}Fields§
§system: Box<dyn DictionarySerializer>§user: Option<Box<dyn DictionarySerializer>>Implementations§
source§impl WordDictionaryConfig
impl WordDictionaryConfig
pub fn new(system: WordDictionaryMode, user: Option<WordDictionaryMode>) -> Self
Trait Implementations§
source§impl DictionaryFetcher for WordDictionaryConfig
impl DictionaryFetcher for WordDictionaryConfig
fn get_word(&self, token: &Token<'_>) -> JPreprocessResult<WordEntry>
fn get_word_vectored( &self, tokens: &[Token<'_>] ) -> JPreprocessResult<Vec<WordEntry>>
Auto Trait Implementations§
impl !RefUnwindSafe for WordDictionaryConfig
impl !Send for WordDictionaryConfig
impl !Sync for WordDictionaryConfig
impl Unpin for WordDictionaryConfig
impl !UnwindSafe for WordDictionaryConfig
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