pub trait HasBeforeInputData: Any {
// Required methods
fn input_type(&self) -> InputType;
fn data(&self) -> Option<String>;
fn is_composing(&self) -> bool;
fn value(&self) -> String;
fn as_any(&self) -> &dyn Any;
}Expand description
An object exposing all the data backing a BeforeInputData event.
Required Methods§
Sourcefn input_type(&self) -> InputType
fn input_type(&self) -> InputType
The type of input change. See BeforeInputData::input_type.
Sourcefn data(&self) -> Option<String>
fn data(&self) -> Option<String>
The text data being inserted, or None if the change carries no text.
Sourcefn is_composing(&self) -> bool
fn is_composing(&self) -> bool
Whether the event is fired during an active IME composition session.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".