Struct jpreprocess_dictionary::default::DefaultFetcher
source · pub struct DefaultFetcher { /* private fields */ }Expand description
Default DictionaryFetcher of JPreprocess.
Holds the dictionary mode of both system and user dictionary, and routes Token to either dictionary.
Implementations§
source§impl DefaultFetcher
impl DefaultFetcher
pub fn new(system: WordDictionaryMode, user: Option<WordDictionaryMode>) -> Self
pub fn from_dictionaries<System, User>(
system: &System,
user: Option<&User>
) -> Selfwhere
System: for<'a> DictionaryStore<'a>,
User: for<'a> DictionaryStore<'a>,
Trait Implementations§
source§impl DictionaryFetcher for DefaultFetcher
impl DictionaryFetcher for DefaultFetcher
fn get_word(&self, token: &Token<'_>) -> JPreprocessResult<WordEntry>
fn get_word_vectored( &self, tokens: &[Token<'_>] ) -> JPreprocessResult<Vec<WordEntry>>
Auto Trait Implementations§
impl Freeze for DefaultFetcher
impl RefUnwindSafe for DefaultFetcher
impl Send for DefaultFetcher
impl Sync for DefaultFetcher
impl Unpin for DefaultFetcher
impl UnwindSafe for DefaultFetcher
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