[][src]Struct keyboard_types::CompositionEvent

pub struct CompositionEvent {
    pub state: CompositionState,
    pub data: String,
}

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

impl Clone for CompositionEvent[src]

impl Debug for CompositionEvent[src]

impl<'de> Deserialize<'de> for CompositionEvent[src]

impl Eq for CompositionEvent[src]

impl From<CompositionEvent> for Event[src]

impl Hash for CompositionEvent[src]

impl PartialEq<CompositionEvent> for CompositionEvent[src]

impl Serialize for CompositionEvent[src]

impl StructuralEq for CompositionEvent[src]

impl StructuralPartialEq for CompositionEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.