pub struct UnknownHandler {
pub category_map: CharCategoryMap,
pub unknown_dict: UnknownDictionary,
}Expand description
미등록어 처리기
사전에 없는 단어의 후보를 생성합니다.
Fields§
§category_map: CharCategoryMap문자 카테고리 맵
unknown_dict: UnknownDictionary미등록어 사전
Implementations§
Source§impl UnknownHandler
impl UnknownHandler
Sourcepub const fn new(
category_map: CharCategoryMap,
unknown_dict: UnknownDictionary,
) -> Self
pub const fn new( category_map: CharCategoryMap, unknown_dict: UnknownDictionary, ) -> Self
새로운 미등록어 처리기 생성
Sourcepub fn korean_default() -> Self
pub fn korean_default() -> Self
한국어 기본 설정으로 생성
Sourcepub fn generate_candidates(
&self,
text: &str,
start_pos: usize,
has_dict_entry: bool,
) -> Vec<UnknownCandidate>
pub fn generate_candidates( &self, text: &str, start_pos: usize, has_dict_entry: bool, ) -> Vec<UnknownCandidate>
Trait Implementations§
Source§impl Clone for UnknownHandler
impl Clone for UnknownHandler
Source§fn clone(&self) -> UnknownHandler
fn clone(&self) -> UnknownHandler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnknownHandler
impl Debug for UnknownHandler
Auto Trait Implementations§
impl Freeze for UnknownHandler
impl RefUnwindSafe for UnknownHandler
impl Send for UnknownHandler
impl Sync for UnknownHandler
impl Unpin for UnknownHandler
impl UnsafeUnpin for UnknownHandler
impl UnwindSafe for UnknownHandler
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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