pub struct CompositionEvent {
pub state: CompositionState,
pub data: String,
}
Expand description
Event to expose input methods to program logic.
Provides information about entered sequences from dead key combinations and IMEs.
A composition session is always started by a “compositionstart” event followed my zero or more “compositionupdate” events and terminated by a single “compositionend” event.
Fields§
§state: CompositionState
Describes the event kind.
data: String
Current composition data. May be empty.
Trait Implementations§
source§impl Clone for CompositionEvent
impl Clone for CompositionEvent
source§fn clone(&self) -> CompositionEvent
fn clone(&self) -> CompositionEvent
Returns a copy of the value. Read more
1.0.0 · 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 CompositionEvent
impl Debug for CompositionEvent
source§impl<'de> Deserialize<'de> for CompositionEvent
impl<'de> Deserialize<'de> for CompositionEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<CompositionEvent> for Event
impl From<CompositionEvent> for Event
source§fn from(v: CompositionEvent) -> Event
fn from(v: CompositionEvent) -> Event
Converts to this type from the input type.
source§impl Hash for CompositionEvent
impl Hash for CompositionEvent
source§impl PartialEq for CompositionEvent
impl PartialEq for CompositionEvent
source§impl Serialize for CompositionEvent
impl Serialize for CompositionEvent
impl Eq for CompositionEvent
impl StructuralPartialEq for CompositionEvent
Auto Trait Implementations§
impl Freeze for CompositionEvent
impl RefUnwindSafe for CompositionEvent
impl Send for CompositionEvent
impl Sync for CompositionEvent
impl Unpin for CompositionEvent
impl UnwindSafe for CompositionEvent
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)