pub struct KeyOutcome {
pub commit: String,
pub preedit: String,
pub consumed: bool,
pub delete_before: u32,
}Expand description
키 한 번 처리 결과.
Fields§
§commit: String응용프로그램에 확정 입력할 문자열(없으면 빈 문자열).
preedit: String현재 조합 중 표시(preedit). 없으면 빈 문자열.
consumed: bool엔진이 이 키를 소비했는지. false 면 프런트엔드가 원래 키를 응용에 넘긴다.
delete_before: u32BkspAttach: 커서 앞의 이미 확정된 글자 N개를 응용에서 지워달라는 요청. 프런트엔드가 surrounding-text(DeleteSurroundingText)를 지원하면 그만큼 지우고, 못 지우면 무시한다(그 경우 preedit 가 비고 consumed=false 로 폴백됨).
Trait Implementations§
Source§impl Clone for KeyOutcome
impl Clone for KeyOutcome
Source§fn clone(&self) -> KeyOutcome
fn clone(&self) -> KeyOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KeyOutcome
impl Debug for KeyOutcome
Source§impl Default for KeyOutcome
impl Default for KeyOutcome
Source§fn default() -> KeyOutcome
fn default() -> KeyOutcome
Returns the “default value” for a type. Read more
Source§impl PartialEq for KeyOutcome
impl PartialEq for KeyOutcome
Source§fn eq(&self, other: &KeyOutcome) -> bool
fn eq(&self, other: &KeyOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for KeyOutcome
impl StructuralPartialEq for KeyOutcome
Auto Trait Implementations§
impl Freeze for KeyOutcome
impl RefUnwindSafe for KeyOutcome
impl Send for KeyOutcome
impl Sync for KeyOutcome
impl Unpin for KeyOutcome
impl UnsafeUnpin for KeyOutcome
impl UnwindSafe for KeyOutcome
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