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 Hash for CompositionEvent
impl Hash for CompositionEvent
source§impl PartialEq for CompositionEvent
impl PartialEq 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
)source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.