pub enum PlatformTextInputQuery {
SelectedTextRange,
MarkedTextRange,
TextForRange {
range: Utf16Range,
},
BoundsForRange {
range: Utf16Range,
},
CharacterIndexForPoint {
point: Point,
},
}Expand description
Minimal platform text input handler surface (Zed/GPUI-inspired).
v1: indices are UTF-16 code units over the composed view.
Variants§
SelectedTextRange
MarkedTextRange
TextForRange
Fields
§
range: Utf16RangeBoundsForRange
Fields
§
range: Utf16RangeCharacterIndexForPoint
Trait Implementations§
Source§impl Clone for PlatformTextInputQuery
impl Clone for PlatformTextInputQuery
Source§fn clone(&self) -> PlatformTextInputQuery
fn clone(&self) -> PlatformTextInputQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlatformTextInputQuery
impl Debug for PlatformTextInputQuery
Source§impl PartialEq for PlatformTextInputQuery
impl PartialEq for PlatformTextInputQuery
impl StructuralPartialEq for PlatformTextInputQuery
Auto Trait Implementations§
impl Freeze for PlatformTextInputQuery
impl RefUnwindSafe for PlatformTextInputQuery
impl Send for PlatformTextInputQuery
impl Sync for PlatformTextInputQuery
impl Unpin for PlatformTextInputQuery
impl UnsafeUnpin for PlatformTextInputQuery
impl UnwindSafe for PlatformTextInputQuery
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