Struct keyboard_types::CompositionEvent
source · 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<CompositionEvent> for CompositionEvent
impl PartialEq<CompositionEvent> for CompositionEvent
source§fn eq(&self, other: &CompositionEvent) -> bool
fn eq(&self, other: &CompositionEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CompositionEvent
impl Serialize for CompositionEvent
impl Eq for CompositionEvent
impl StructuralEq for CompositionEvent
impl StructuralPartialEq for CompositionEvent
Auto Trait Implementations§
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