pub struct PreeditState { /* private fields */ }Expand description
IME 组合态。text = None 表示无组合;cursor 是组合串内的字节区间。
组合期间不触碰 buffer;commit() 是唯一落地入口,cancel() 只丢弃组合态。
Implementations§
Trait Implementations§
Source§impl Clone for PreeditState
impl Clone for PreeditState
Source§impl Debug for PreeditState
impl Debug for PreeditState
Source§impl Default for PreeditState
impl Default for PreeditState
impl Eq for PreeditState
Source§impl PartialEq for PreeditState
impl PartialEq for PreeditState
impl StructuralPartialEq for PreeditState
Auto Trait Implementations§
impl Forget for PreeditState
impl Freeze for PreeditState
impl Move for PreeditState
impl RefUnwindSafe for PreeditState
impl Send for PreeditStatewhere
RawVecInner: Send,
impl Sync for PreeditStatewhere
RawVecInner: Sync,
impl Unpin for PreeditState
impl UnsafeUnpin for PreeditState
impl UnwindSafe for PreeditStatewhere
RawVecInner: UnwindSafe,
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