pub enum TextEvent {
Changed,
Selection(Range<usize>),
Composition(Option<String>),
}Expand description
Something the user did in the editor.
Variants§
Changed
The text changed (typing, paste, undo, a committed IME composition…).
Read it with TextModel::text. Not sent while composing.
Selection(Range<usize>)
The selection or caret moved (byte range).
Composition(Option<String>)
An input method is composing (Some(marked text)), or stopped (None).
Trait Implementations§
impl StructuralPartialEq for TextEvent
Auto Trait Implementations§
impl Freeze for TextEvent
impl RefUnwindSafe for TextEvent
impl Send for TextEvent
impl Sync for TextEvent
impl Unpin for TextEvent
impl UnsafeUnpin for TextEvent
impl UnwindSafe for TextEvent
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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