#[repr(C)]pub struct msime_engine_candidate {
pub struct_size: u32,
pub index: u32,
pub source: u32,
pub scheme: u32,
pub flags: u32,
pub fixed_position: i32,
pub word: msime_engine_str,
pub code: msime_engine_str,
pub annotation: msime_engine_str,
pub corrected_from: msime_engine_str,
}Expand description
一行候选(ABI 1.0),msime_engine_candidate_get 填写,收发规则同 msime_engine_result,字符串的有效期同 msime_engine_state。
Fields§
§struct_size: u32§index: u32这一行的下标(就是传进来的那个)。
source: u32MSIME_ENGINE_SOURCE_*。
scheme: u32给出这一行的方案,MSIME_ENGINE_SCHEME_*(五笔混拼里的拼音行是全拼)。
flags: u32MSIME_ENGINE_CANDIDATE_* 的组合。
fixed_position: i32用户固定的位置 1..=5,没固定时 0。
word: msime_engine_str§code: msime_engine_str这一行匹配的编码,按输入的写法(全拼是带 ' 的音节)。
annotation: msime_engine_str注释:辅助码或纠错提示,没有时为空串。
corrected_from: msime_engine_str纠错读出的行:用户实际打的字母;其余为空串。
Trait Implementations§
Source§impl Clone for msime_engine_candidate
impl Clone for msime_engine_candidate
impl Copy for msime_engine_candidate
Auto Trait Implementations§
impl !Send for msime_engine_candidate
impl !Sync for msime_engine_candidate
impl Freeze for msime_engine_candidate
impl RefUnwindSafe for msime_engine_candidate
impl Unpin for msime_engine_candidate
impl UnsafeUnpin for msime_engine_candidate
impl UnwindSafe for msime_engine_candidate
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