pub struct EditingState {
pub text: String,
pub selection_base: i32,
pub selection_extent: i32,
pub composing_base: i32,
pub composing_extent: i32,
}Expand description
The full editing state of a text field — the value every IME bridge syncs (-1 = none).
Index boundary rule: at the AppTree/shell seam the indices count UTF-16 code units; widgets
and frust-text convert to byte offsets, and core interprets none.
Fields§
§text: String§selection_base: i32§selection_extent: i32§composing_base: i32§composing_extent: i32Trait Implementations§
Source§impl Clone for EditingState
impl Clone for EditingState
Source§impl Debug for EditingState
impl Debug for EditingState
Source§impl Default for EditingState
impl Default for EditingState
impl Eq for EditingState
Source§impl PartialEq for EditingState
impl PartialEq for EditingState
impl StructuralPartialEq for EditingState
Auto Trait Implementations§
impl Freeze for EditingState
impl RefUnwindSafe for EditingState
impl Send for EditingState
impl Sync for EditingState
impl Unpin for EditingState
impl UnsafeUnpin for EditingState
impl UnwindSafe for EditingState
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<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> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.