pub struct Preedit {
text: String,
cursor_byte_offset: Option<usize>,
cursor_end_offset: Option<usize>,
}
Fields§
§text: String
The preedit text.
cursor_byte_offset: Option<usize>
Byte offset for cursor start into the preedit text.
None
means that the cursor is invisible.
cursor_end_offset: Option<usize>
The cursor offset from the end of the preedit in char width.
Implementations§
Trait Implementations§
source§impl PartialEq<Preedit> for Preedit
impl PartialEq<Preedit> for Preedit
impl Eq for Preedit
impl StructuralEq for Preedit
impl StructuralPartialEq for Preedit
Auto Trait Implementations§
impl RefUnwindSafe for Preedit
impl Send for Preedit
impl Sync for Preedit
impl Unpin 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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.