#[non_exhaustive]pub struct InputDetail {
pub input_type: InputType,
pub data: Option<String>,
pub is_composing: bool,
}Expand description
beforeinput / input event payload, per UI Events / Input
Events Level 2.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.input_type: InputTypeWhat kind of edit produced this event. See InputType.
data: Option<String>Text being inserted, or None for deletion-style events.
is_composing: booltrue if this event fires as part of an IME composition
sequence. rdom doesn’t model IME directly; always false
in M4. Reserved for future polish.
Implementations§
Trait Implementations§
Source§impl Clone for InputDetail
impl Clone for InputDetail
Source§impl Debug for InputDetail
impl Debug for InputDetail
impl Eq for InputDetail
Source§impl Hash for InputDetail
impl Hash for InputDetail
Source§impl PartialEq for InputDetail
impl PartialEq for InputDetail
impl StructuralPartialEq for InputDetail
Auto Trait Implementations§
impl Freeze for InputDetail
impl RefUnwindSafe for InputDetail
impl Send for InputDetail
impl Sync for InputDetail
impl Unpin for InputDetail
impl UnsafeUnpin for InputDetail
impl UnwindSafe for InputDetail
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