pub struct CompositionEvent {
pub event: Event,
pub data: String,
}Expand description
A DOM CompositionEvent: an input method composition starts or ends.
Fields§
§event: Event§data: StringImplementations§
Methods from Deref<Target = Event>§
Sourcepub fn prevent_default(&self)
pub fn prevent_default(&self)
preventDefault(): a cancelable event’s default action is not to
happen.
Sourcepub fn default_prevented(&self) -> bool
pub fn default_prevented(&self) -> bool
defaultPrevented.
Sourcepub fn stop_propagation(&self)
pub fn stop_propagation(&self)
stopPropagation().
Sourcepub fn propagation_stopped(&self) -> bool
pub fn propagation_stopped(&self) -> bool
Whether stopPropagation() was called.
Trait Implementations§
Source§impl Debug for CompositionEvent
impl Debug for CompositionEvent
Auto Trait Implementations§
impl !Freeze for CompositionEvent
impl !RefUnwindSafe for CompositionEvent
impl !Sync for CompositionEvent
impl Forget for CompositionEvent
impl Move for CompositionEvent
impl Send for CompositionEvent
impl Unpin for CompositionEvent
impl UnsafeUnpin 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