Struct lindera_dictionary::DictionaryLoader
source · pub struct DictionaryLoader {}Implementations§
source§impl DictionaryLoader
impl DictionaryLoader
pub fn prefix_dict(dir: PathBuf) -> LinderaResult<PrefixDict>
pub fn connection(dir: PathBuf) -> LinderaResult<ConnectionCostMatrix>
pub fn char_def(dir: PathBuf) -> LinderaResult<CharacterDefinitions>
pub fn unknown_dict(dir: PathBuf) -> LinderaResult<UnknownDictionary>
pub fn words_idx_data(dir: PathBuf) -> LinderaResult<Vec<u8>>
pub fn words_data(dir: PathBuf) -> LinderaResult<Vec<u8>>
pub fn load_dictionary(path: PathBuf) -> LinderaResult<Dictionary>
pub fn load_dictionary_from_kind( kind: DictionaryKind ) -> LinderaResult<Dictionary>
pub fn load_dictionary_from_config( dictionary_config: DictionaryConfig ) -> LinderaResult<Dictionary>
pub fn load_user_dictionary_from_csv( kind: DictionaryKind, path: PathBuf ) -> LinderaResult<UserDictionary>
pub fn load_user_dictionary_from_bin( path: PathBuf ) -> LinderaResult<UserDictionary>
pub fn load_user_dictionary_from_config( dictionary_config: UserDictionaryConfig ) -> LinderaResult<UserDictionary>
Auto Trait Implementations§
impl Freeze for DictionaryLoader
impl RefUnwindSafe for DictionaryLoader
impl Send for DictionaryLoader
impl Sync for DictionaryLoader
impl Unpin for DictionaryLoader
impl UnwindSafe for DictionaryLoader
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