pub struct TextChanged {
pub start: usize,
pub old_end: usize,
pub new_end: usize,
pub cause: ChangeCause,
}Expand description
A change of the text, as TextInputDocument::text_changed_since
answers it: the text start..old_end became start..new_end, in
character offsets.
Fields§
§start: usize§old_end: usize§new_end: usize§cause: ChangeCauseChangeCause::InputSystem only when every change merged here came
from the input system.
Trait Implementations§
Source§impl Clone for TextChanged
impl Clone for TextChanged
impl Copy for TextChanged
Source§impl Debug for TextChanged
impl Debug for TextChanged
impl Eq for TextChanged
Source§impl PartialEq for TextChanged
impl PartialEq for TextChanged
impl StructuralPartialEq for TextChanged
Auto Trait Implementations§
impl Freeze for TextChanged
impl RefUnwindSafe for TextChanged
impl Send for TextChanged
impl Sync for TextChanged
impl Unpin for TextChanged
impl UnsafeUnpin for TextChanged
impl UnwindSafe for TextChanged
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