pub struct UserEntry {
pub surface: String,
pub left_id: u16,
pub right_id: u16,
pub cost: i16,
pub pos: String,
pub reading: Option<String>,
pub lemma: Option<String>,
pub feature: String,
}Expand description
사용자 사전 엔트리
Fields§
§surface: String표면형
left_id: u16좌문맥 ID
right_id: u16우문맥 ID
cost: i16비용 (낮을수록 우선)
pos: String품사 태그
reading: Option<String>읽기 (발음)
lemma: Option<String>원형 (기본형)
feature: String전체 품사 정보 (feature string, 캐시)
Implementations§
Source§impl UserEntry
impl UserEntry
Sourcepub fn new(
surface: impl Into<String>,
pos: impl Into<String>,
cost: i16,
reading: Option<String>,
) -> UserEntry
pub fn new( surface: impl Into<String>, pos: impl Into<String>, cost: i16, reading: Option<String>, ) -> UserEntry
새 사용자 엔트리 생성
Sourcepub const fn with_context_ids(self, left_id: u16, right_id: u16) -> UserEntry
pub const fn with_context_ids(self, left_id: u16, right_id: u16) -> UserEntry
컨텍스트 ID 설정
Sourcepub fn with_lemma(self, lemma: impl Into<String>) -> UserEntry
pub fn with_lemma(self, lemma: impl Into<String>) -> UserEntry
원형 설정
Trait Implementations§
impl Eq for UserEntry
impl StructuralPartialEq for UserEntry
Auto Trait Implementations§
impl Freeze for UserEntry
impl RefUnwindSafe for UserEntry
impl Send for UserEntry
impl Sync for UserEntry
impl Unpin for UserEntry
impl UnsafeUnpin for UserEntry
impl UnwindSafe for UserEntry
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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