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
sourceimpl Clone for CompositionEvent
impl Clone for CompositionEvent
sourcefn clone(&self) -> CompositionEvent
fn clone(&self) -> CompositionEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CompositionEvent
impl Debug for CompositionEvent
sourceimpl<'de> Deserialize<'de> for CompositionEvent
impl<'de> Deserialize<'de> for CompositionEvent
sourcefn 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
sourceimpl From<CompositionEvent> for Event
impl From<CompositionEvent> for Event
sourcefn from(v: CompositionEvent) -> Event
fn from(v: CompositionEvent) -> Event
Converts to this type from the input type.
sourceimpl Hash for CompositionEvent
impl Hash for CompositionEvent
sourceimpl PartialEq<CompositionEvent> for CompositionEvent
impl PartialEq<CompositionEvent> for CompositionEvent
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &CompositionEvent) -> bool
fn ne(&self, other: &CompositionEvent) -> bool
This method tests for !=
.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more