pub struct Preedit {
pub text: String,
pub cursor: Option<(usize, usize)>,
}Expand description
Text an input method is composing, shown at the caret, underlined, until it commits or drops it.
Fields§
§text: StringThe text.
cursor: Option<(usize, usize)>Where in text, in bytes, its own caret or selection is, if shown.
Trait Implementations§
impl Eq for Preedit
impl StructuralPartialEq for Preedit
Auto Trait Implementations§
impl Forget for Preedit
impl Freeze for Preedit
impl Move for Preedit
impl RefUnwindSafe for Preedit
impl Send for Preedit
impl Sync for Preedit
impl Unpin for Preedit
impl UnsafeUnpin for Preedit
impl UnwindSafe for Preedit
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