pub struct DictionaryLoader;Expand description
사전 로더
사전 경로 탐색 및 로딩을 담당합니다.
Implementations§
Source§impl DictionaryLoader
impl DictionaryLoader
Sourcepub fn find_dicdir() -> Result<PathBuf, DictError>
pub fn find_dicdir() -> Result<PathBuf, DictError>
사전 디렉토리 경로 탐색
다음 순서로 탐색합니다:
MECAB_DICDIR환경변수- 기본 경로 목록
§Errors
Returns an error if the dictionary directory cannot be found.
Sourcepub fn load_system<P>(dicdir: P) -> Result<SystemDictionary, DictError>
pub fn load_system<P>(dicdir: P) -> Result<SystemDictionary, DictError>
Sourcepub fn load_default() -> Result<SystemDictionary, DictError>
pub fn load_default() -> Result<SystemDictionary, DictError>
Auto Trait Implementations§
impl Freeze for DictionaryLoader
impl RefUnwindSafe for DictionaryLoader
impl Send for DictionaryLoader
impl Sync for DictionaryLoader
impl Unpin for DictionaryLoader
impl UnsafeUnpin 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more