pub struct ImePreedit {
pub buf: [u8; 64],
pub len: u8,
pub cursor_start: u8,
pub cursor_end: u8,
pub has_cursor: bool,
}Expand description
零堆内联 IME 组合输入预编辑(Preedit)负载(支持最多 64 字节 UTF-8 组合串与选区光标区间)。
100% 兼容 #![no_std] 与 Copy,用于中文拼音、日文假名、韩文等输入法实时预编辑展示。
Fields§
§buf: [u8; 64]§len: u8§cursor_start: u8§cursor_end: u8§has_cursor: boolImplementations§
Trait Implementations§
Source§impl Clone for ImePreedit
impl Clone for ImePreedit
impl Copy for ImePreedit
Source§impl Debug for ImePreedit
impl Debug for ImePreedit
Source§impl Default for ImePreedit
impl Default for ImePreedit
impl Eq for ImePreedit
Source§impl PartialEq for ImePreedit
impl PartialEq for ImePreedit
impl StructuralPartialEq for ImePreedit
Auto Trait Implementations§
impl Forget for ImePreedit
impl Freeze for ImePreedit
impl Move for ImePreedit
impl RefUnwindSafe for ImePreedit
impl Send for ImePreedit
impl Sync for ImePreedit
impl Unpin for ImePreedit
impl UnsafeUnpin for ImePreedit
impl UnwindSafe for ImePreedit
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FluentBuilder for T
impl<T> FluentBuilder for T
Source§fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
当
condition 为 true 时执行闭包修饰自身,否则原样返回。Source§fn when_else(
self,
condition: bool,
then: impl FnOnce(Self) -> Self,
else_fn: impl FnOnce(Self) -> Self,
) -> Self
fn when_else( self, condition: bool, then: impl FnOnce(Self) -> Self, else_fn: impl FnOnce(Self) -> Self, ) -> Self
根据
condition 在两个修饰分支之间二选一。Source§fn when_some<O>(
self,
option: Option<O>,
then: impl FnOnce(Self, O) -> Self,
) -> Self
fn when_some<O>( self, option: Option<O>, then: impl FnOnce(Self, O) -> Self, ) -> Self
当
option 为 Some(value) 时执行闭包修饰自身,否则原样返回。