pub struct TextInputEventData {
pub inserted_text: String,
pub old_text: String,
}Expand description
Type-specific event data for text-input (editing) events.
Carried by EventType::Input events so that text-input callbacks can read
the edit details directly off the event — matching how mouse/keyboard/scroll
callbacks read their data — instead of having to reach into the
TextInputManager’s pending changeset. The edited node is already available
via SyntheticEvent.target.
Fields§
§inserted_text: StringThe text inserted by this edit (empty for pure deletions).
old_text: StringThe text content of the node before this edit was applied.
Trait Implementations§
Source§impl Clone for TextInputEventData
impl Clone for TextInputEventData
Source§fn clone(&self) -> TextInputEventData
fn clone(&self) -> TextInputEventData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TextInputEventData
impl Debug for TextInputEventData
impl Eq for TextInputEventData
Source§impl PartialEq for TextInputEventData
impl PartialEq for TextInputEventData
impl StructuralPartialEq for TextInputEventData
Auto Trait Implementations§
impl Freeze for TextInputEventData
impl RefUnwindSafe for TextInputEventData
impl Send for TextInputEventData
impl Sync for TextInputEventData
impl Unpin for TextInputEventData
impl UnsafeUnpin for TextInputEventData
impl UnwindSafe for TextInputEventData
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